Ticket #1198 (new defect)

Opened 7 months ago

Last modified 6 months ago

Xinha width and height miscalculated when very small.

Reported by: guest Owned by: gogo
Priority: normal Milestone: 0.96
Component: Xinha Core Version:
Severity: minor Keywords:
Cc:

Description

Basically (in sizeEditor()), the objects inside the htmlArea object cause the explicit size set to be ignored (treating it more like a minimum size). So a call to htmlArea.offsetHeight or Width is not guaranteed to return the same value as was set to the htmlArea earlier in the routine.

In order to get it working for right now I make the iframe display none when asking for the dimensions of htmlArea. This isn't the best fix.

This affects IE7 and FF2/3 at the least. I have not tested other browsers.

Make an editor and set the sizes to 150px/150px to test. I used Xinha 0.95rc2.

Change History

Changed 6 months ago by ray

  • severity changed from normal to minor
  • milestone changed from 0.95 to 0.96
Note: See TracTickets for help on using tickets.