Closed Bug 99941 Opened 23 years ago Closed 20 years ago

Framesets with decimal (fractional) percentages are displayed wrong

Categories

(Core :: Layout: Images, Video, and HTML Frames, defect)

defect
Not set
trivial

Tracking

()

RESOLVED WONTFIX
Future

People

(Reporter: Kerstin, Unassigned)

References

()

Details

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4+)
Gecko/20010914
BuildID:    2001091403

If a FRAMESET is defined with frames which have a decimal percentage value only
the integer part is used.

Reproducible: Always
Steps to Reproduce:
1. Create a frameset with a frame using a decimal percentage value
2. Load the frameset into Mozilla
3. Cut off the decimal part in the frameset definition
4. Reload the page and see nothing has changed
Status: UNCONFIRMED → NEW
Ever confirmed: true
Bulk reassignin HTML FRAME/IFRAME bugs to Eric.
Assignee: pollmann → evaughan
Target Milestone: --- → Future
Bulk re-assigning all of Eric's HTMLFrame bugs to John.
Assignee: eric → jkeiser
This is not too hard to fix; the question is whether it needs fixing...  Ian? 
What do you think?  The HTML spec is not very clear on whether non-integer
percentages are allowed....
Assignee: john → frame
OS: Windows 2000 → All
Hardware: PC → All
I'm going to go out on a limb and mark this wontfix, unless strong objects are
brought up....
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → WONTFIX
*** Bug 249480 has been marked as a duplicate of this bug. ***
Can marking this bug "WONTFIX" please be re-considered?

A scenario where this is actually useful:
I have a frameset with resizable frames. When the user clicks a link in one of
the frames, I want the entire frameset to be reloaded (because content in all
frames should be replaced), but I want the layout (i.e. the frame sizes) to be
preserved. The way I do it is by creating a cookie with the current frame sizes
in the onResize() event handler, and using these sizes to calculate a percentage
when creating the new frameset. If I'm limited to integer percentages, the frame
borders in the new frameset will usually appear slightly shifted relative to
where they were originally. 

And sorry for submitting the duplicate - I searched for "fractional", not "decimal".
does top.reload() not work?
Summary: Framesets with decimal percentages are displayed wrong → Framesets with decimal (fractional) percentages are displayed wrong
(In reply to comment #7)
> does top.reload() not work?

Errr, sorry, "reload" was probably the wrong word. What I meant to say is that I want to load *new* URLs 
into the frames - while preserving their sizes. The frame URLs are generated by the server when the 
framest document is requested.
Product: Core → Core Graveyard
Component: Layout: HTML Frames → Layout: Images
Product: Core Graveyard → Core
You need to log in before you can comment on or make changes to this bug.