If a component "comp" be nested inside a "inner" JSplitPane with VERTICAL_SPLIT 
mode and if then "inner" be nested inside a
"outer" JSplitPane with HORIZONTAL_SPLIT mode and a component listener is added 
to "comp"
then with this setup, componentResized() on the listener is called ONLY when 
the divider of "outer" is moved manually
however, it is not called when the divider of "outer" is moved using "One touch 
expandable" left button at the top of the divider.

This is because the `layoutContainer` bails out if the width or height is 0 
which logically should be to bail out if both width and height is 0 and when 
"One touch expandable" left button is pressed, width becomes 0 so 
`layoutContainer` bails out without sending the event.

With this fix, componentResized is called

No regression is observed in CI.

-------------

Commit messages:
 - 4765299: componentResized() not always called with nested JSplitPanes
 - 4765299: componentResized() not always called with nested JSplitPanes
 - 4765299: componentResized() not always called with nested JSplitPanes
 - 4765299: componentResized() not always called with nested JSplitPanes
 - 4765299: componentResized() not always called with nested JSplitPanes

Changes: https://git.openjdk.org/jdk/pull/29063/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=29063&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-4765299
  Stats: 176 lines in 2 files changed: 174 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/29063.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/29063/head:pull/29063

PR: https://git.openjdk.org/jdk/pull/29063

Reply via email to