diegoles / closure-library

Automatically exported from code.google.com/p/closure-library
0 stars 0 forks source link

SeamlessField Gecko resize function not accounting for borders, causes element to grow forever #405

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago

1.  In Firefox 8, load a page like the one attached.
2.  Hover or click on the Select element (and there are other ways to trigger 
the resize).
3.  The editable field grows in width when it should not.

Confirmed on Firefox 8.  Mac, Windows, and Linux

Setting a DOM breakpoint in firebug located the problem in this function: 
goog.editor.SeamlessField.prototype.sizeIframeToWrapperGecko_

It keeps increasing the width, because it sees the parent width that includes 
the border.  

Original issue reported on code.google.com by rob.nika...@gmail.com on 15 Dec 2011 at 4:21

Attachments:

GoogleCodeExporter commented 8 years ago
The attached diff "fixes" it, but I don't know what else it might break.  I 
don't know the intent these gecko functions, or the iframe.

Original comment by rob.nika...@gmail.com on 15 Dec 2011 at 5:21

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by pall...@google.com on 30 Dec 2011 at 10:39