@Override public void setPixelSize(int width, int height) { super.setPixelSize(scrollPanelWidth = Math.max(width, minScrollPanelWidth), scrollPanelHeight = Math.max(height, minScrollPanelHeight)); } }
@Override public void setPixelSize(int width, int height) { super.setPixelSize(width, height); this.width = width; this.height = height; }
@Override public void setPixelSize(int width, int height) { super.setPixelSize(scrollPanelWidth = Math.max(width, minScrollPanelWidth), scrollPanelHeight = Math.max(height, minScrollPanelHeight)); } }
@Override public void setPixelSize(int width, int height) { super.setPixelSize(scrollPanelWidth = Math.max(width, minScrollPanelWidth), scrollPanelHeight = Math.max(height, minScrollPanelHeight)); } }
@Override public void setPixelSize(int width, int height) { super.setPixelSize(scrollPanelWidth = Math.max(width, minScrollPanelWidth), scrollPanelHeight = Math.max(height, minScrollPanelHeight)); } }
@Override public void onResize() { final Widget parent = getParent(); if (parent != null) { final int width = parent.getOffsetWidth(); final int height = parent.getOffsetHeight(); sp.setPixelSize(width, height); } super.onResize(); }
@Override public void onResize() { final Widget parent = getParent(); if (parent != null) { final int width = parent.getOffsetWidth(); final int height = parent.getOffsetHeight(); sp.setPixelSize(width, height); } super.onResize(); }
@Override public void onResize() { final Widget parent = getParent(); if ( parent != null ) { sp.setPixelSize( parent.getOffsetWidth(), parent.getOffsetHeight() ); } super.onResize(); } }
private HeaderRenderParameters calculateRenderParameters(final int calendarPanelHeight, final int headerHeight, final int tagsHeight, final int hoursHeight, final int tagAmmoun) { final HeaderRenderParameters result = new HeaderRenderParameters(); scrollDays.setPixelSize(-1, calendarPanelHeight - headerHeight - tagsHeight); final Element element = scrollDays.getElement(); result.width = element.getScrollWidth(); result.offset = HourPanel.getPrefferedWitdhInt(); result.daysWidth = new int[daysShown][tagAmmoun]; final int width = result.width - result.offset; final int dayCellWidth = width / daysShown; final int widthCompensation = width % daysShown; for (int day = 0; day < daysShown; day++) { for (int tag = 0; tag < tagAmmoun; tag++) { result.daysWidth[day][tag] = calculateTagCellWidth(dayCellWidth + (day < widthCompensation ? 1 : 0), tagAmmoun, tag); } } final Element firstLabel = topDayLabels.get(0).getElement(); result.decorationCompensation = (firstLabel.getOffsetWidth() - firstLabel.getClientWidth()); hour.setPixelSize(-1, hoursHeight + result.decorationCompensation); return result; }