Java Code Examples for com.vaadin.client.WidgetUtil#measureVerticalBorder()
The following examples show how to use
com.vaadin.client.WidgetUtil#measureVerticalBorder() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: GanttConnector.java From gantt with Apache License 2.0 | 6 votes |
void updateDelegateTargetHeight() { if (delegateScrollGridTarget == null) { return; } int headerHeight = 0; if (delegateScrollGridTarget.getHeaderRowCount() > 0) { // update Grid header height to match the Gantt widget's header int tHeadBorder = WidgetUtil.measureVerticalBorder( delegateScrollGridTarget.getEscalator().getHeader().getRowElement(0).getFirstChildElement()); headerHeight = getWidget().getTimelineHeight(); int hRowHeight = Math.max(0, headerHeight - tHeadBorder); if (delegateScrollGridTarget.getEscalator().getHeader().getRowCount() > 1) { hRowHeight = hRowHeight / delegateScrollGridTarget.getEscalator().getHeader().getRowCount(); } delegateScrollGridTarget.getEscalator().getHeader().setDefaultRowHeight(hRowHeight); } updateScrollDelegateScrollContainerHeight(); }
Example 2
Source File: DateCell.java From calendar-component with Apache License 2.0 | 4 votes |
public int getSlotBorder() { return WidgetUtil.measureVerticalBorder(slotElements[0]); }