Menu

#6 Resizable textareas assigned incorrect heights when hidden

PHP5 - Code problem
open
elements (3)
3
2007-04-06
2007-04-06
Nigel McNie
No

If a resizable textarea is placed inside a hidden element, when displayed its width and height will be zero - at least in Firefox 2.

It is possible to set a size on the textarea such that this does not happen, and may even be possible to set a size such that the textarea appears at the correct size when shown. Something like:

11:51 <Jagged> if (this.dimensions.h == 0) this.dimensions.h = 75;
11:51 <Jagged> if (this.grippie.dimensions.h == 0) this.grippie.dimensions.h = 7;
11:51 <Jagged> if (this.dimensions.w == 0) this.dimensions.w = 300;

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.