Details
-
Type: Bug
-
Status: Closed
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 1.7
-
Fix Version/s: 1.7.1
-
Component/s: ICE-Components
-
Labels:None
-
Environment:n/a
-
Support Case References:
Description
2nd pane in panelDivider only covers about 97% of available orientation space. The 1% taken off of each side becomes apparent when used with larger widths.
Issue Links
- is duplicated by
-
ICE-3002 horizontal panelDivider doesn't render properly when y-scrollbar is involved on the right pane
- Closed
Implemented fix that should solve issues in all the 3 cases
ICE-2821,ICE-2822andICE-3003.The dimension of the 1st pane is specified as a %, while the dimension of the 2nd pane is specified as a dynamically calculated no. of pixels. The calculation occurs in these events:
Since there is no way to determine the exact no. of pixels in the padding, scrollbar, border, margin and margin collapsing, we have to make certain assumptions:
However, all the spacing and bordering can be simulated using divs containing the component or nested inside the panes.
Note that offsetWidth includes the scrollbar width if a scrollbar is present, therefore (offsetWidth - clientWidth) doesn't always give you the border width.
Firefox sometimes wraps the right pane around even though the pane should fit exactly in the container, therefore we have to leave a one pixel gap on the right. (Couldn't find a way to fix these after many tries. IE works fine in the many tests done so far.)
There may be more than one divider panel on the same page, therefore on loading we need to remember not just one, but all of them for the window resize event handler.