Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 347308 - [client] Hidden panes don't have a scroll when closed while loading
Summary: [client] Hidden panes don't have a scroll when closed while loading
Status: RESOLVED FIXED
Alias: None
Product: Orion
Classification: ECD
Component: Client (show other bugs)
Version: 0.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 0.2   Edit
Assignee: Malgorzata Janczarska CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-26 08:53 EDT by Malgorzata Janczarska CLA
Modified: 2011-09-01 11:42 EDT (History)
1 user (show)

See Also:
susan: review+


Attachments
Removed changing overflow (495 bytes, patch)
2011-06-06 06:54 EDT, Malgorzata Janczarska CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Malgorzata Janczarska CLA 2011-05-26 08:53:24 EDT
On Git log page commit details on right should have a scrollbar if needed.
Comment 1 Malgorzata Janczarska CLA 2011-06-06 06:31:06 EDT
This issue applies to every hiding pane including favorites and editor outline.
This is how it can be reproduced:
1. Load the page with the hiding pane (editor, navigator...)
2. Close the pane (outline, navigator...)
3. Reload the page
4. The pane is closed by default [GOOD]
5. Open the pane
6. Resize the window or pane so that its content doesn't fit and scroll would be needed
7. Scroll is missing [BUG]
Comment 2 Malgorzata Janczarska CLA 2011-06-06 06:54:44 EDT
Created attachment 197383 [details]
Removed changing overflow

It occurred that when on loading the hiding pane was closed its overflow was by default changed to "hidden". This was made in the same place where its visibility was changed to "hidden". See use of _getStyleProps from ToggleSplitter in eWebBorderContainer.js#eWebSplitter#__handleOnChange (line 221).

Because changing overflow isn't really necessary when the pane is hidden I think we can omit this step and keep the overflow set in the page style. I tested it on favorites, editor outline and commit details and it solves the problem and doesn't seem to break anything.
Comment 3 Malgorzata Janczarska CLA 2011-06-06 06:56:35 EDT
I need a review to push this change.
Comment 4 Susan McCourt CLA 2011-06-06 19:32:03 EDT
This is kind of a follow-on to bug 343288.  In that bug, I noticed that our eWebBorderContainer code (probably originally copied from ToggleSplitter) was slamming the overflow.  This was causing the navigator horizontal scrollbar to disappear.  (I wish I had written a better description/symptoms in that bug.)  I added code to keep track of what the overflow should be.

But as you have observed, on page reload, the "what was my overflow" variable is no longer set, the startup code will call the _handleOnChange, which will call the _getStyleProps, and the overflow will get slammed.

I don't like the fact that we are now hacking in dojox code to fix bugs.  Because we'll lose this fix when we move to a different dojo.  On the other hand, copying the whole method to eWebBorderContainer in order to retain the fix will also be problematic when changing dojo.

So...+1 on the fix because the symptom is quite bad, esp. in the git log views where we are opening/closing the splitter for the user and exacerbating the bug.

But it gives us one more reason to try to get rid of this eWebBorderContainer, or at least move away from the dojo implementation and just rewrite it.  I put a pointer to this bug in 343915.
Comment 5 Malgorzata Janczarska CLA 2011-06-08 07:05:16 EDT
changed pushed.