• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Resizing an input in Firefox

 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've tried to use the cross-browser X-Library, as stated in Ajax in Action, chapter 4 page 155.

When clicking on a div element, I replace the content of a td by an input tag.
Using xLeft, xTop, xWidth and xHeight, I move and resize the input, but its height is too small.
I pass the height of the original td to xHeight : xHeight(editor, xHeight(td));

It works with IE, but not with Firefox

I checked the size with Firebug's Inspector:
original td element : 108px, 19.2px
input : 102px, 10px
[ September 01, 2006: Message edited by: Satou kurinosuke ]
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nobody experienced this resizing problem ?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64830
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or perhaps nobody familiar with the x-library...
 
Anay Nayak
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does your table have cellpadding? that might result in different behavior in IE and firefox.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No cellpadding and no style used. I've set className of trs and tds, but I'm not using any style sheets.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic