< prev index next >

modules/controls/src/main/java/javafx/scene/control/TableUtil.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2012, 2013, 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) 2012, 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
*** 374,390 **** return resizeColumns(resizingChildren, delta); } else { double newWidth = column.getWidth() + delta; if (newWidth > column.getMaxWidth()) { ! column.impl_setWidth(column.getMaxWidth()); return newWidth - column.getMaxWidth(); } else if (newWidth < column.getMinWidth()) { ! column.impl_setWidth(column.getMinWidth()); return newWidth - column.getMinWidth(); } else { ! column.impl_setWidth(newWidth); return 0.0F; } } } --- 374,390 ---- return resizeColumns(resizingChildren, delta); } else { double newWidth = column.getWidth() + delta; if (newWidth > column.getMaxWidth()) { ! column.doSetWidth(column.getMaxWidth()); return newWidth - column.getMaxWidth(); } else if (newWidth < column.getMinWidth()) { ! column.doSetWidth(column.getMinWidth()); return newWidth - column.getMinWidth(); } else { ! column.doSetWidth(newWidth); return 0.0F; } } }
< prev index next >