< prev index next >

modules/javafx.controls/src/main/java/javafx/scene/control/skin/SplitPaneSkin.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 124,136 **** final double w, final double h) { final SplitPane s = getSkinnable(); final double sw = s.getWidth(); final double sh = s.getHeight(); ! if (!s.isVisible() || ! (horizontal ? sw == 0 : sh == 0) || ! contentRegions.isEmpty()) { return; } double dividerWidth = contentDividers.isEmpty() ? 0 : contentDividers.get(0).prefWidth(-1); --- 124,134 ---- final double w, final double h) { final SplitPane s = getSkinnable(); final double sw = s.getWidth(); final double sh = s.getHeight(); ! if ((horizontal ? sw == 0 : sh == 0) || contentRegions.isEmpty()) { return; } double dividerWidth = contentDividers.isEmpty() ? 0 : contentDividers.get(0).prefWidth(-1);
< prev index next >