Updates finder area size and position. Should be called whenever
corresponding settings are changed, see {@link #setSettings(Settings)}
968448
public void update() {
        if (settings != null && getWidth() > 0 && getHeight() > 0) {
            // Updating finder area rectangle
            GravityUtils.getMovementAreaPosition(settings, tmpRect);
            rect.set(tmpRect);
            rect.offset(getPaddingLeft(), getPaddingTop());

            // We want to stroke outside of finder rectangle, while by default stroke is centered
            strokeRect.set(rect);
            float halfStroke = 0.5f * paintStroke.getStrokeWidth();
            strokeRect.inset(-halfStroke, -halfStroke);

            invalidate();
        }
    }
737438
private void enableResizeContentPanel(boolean enable) {
        if (enable) {
            //activate the resizeFunction
            DisplayMetrics displaymetrics = getContent().getContext().getResources().getDisplayMetrics();
            final int screenWidth = displaymetrics.widthPixels;

            ViewGroup.LayoutParams lp = getContent().getLayoutParams();
            lp.width = screenWidth - getSecondWidth();
            getContent().setLayoutParams(lp);

            if (mCrossFadeSlidingPaneLayout != null) {
                mCrossFadeSlidingPaneLayout.setPanelSlideListener(new SlidingPaneLayout.PanelSlideListener() {
                    @Override
                    public void onPanelSlide(View panel, float slideOffset) {
                        ViewGroup.LayoutParams lp = getContent().getLayoutParams();
                        lp.width = (int) (screenWidth - getSecondWidth() - ((getFirstWidth() - getSecondWidth()) * slideOffset));
                        getContent().setLayoutParams(lp);

                        if (mPanelSlideListener != null) {
                            mPanelSlideListener.onPanelSlide(panel, slideOffset);
                        }
                    }

                    @Override
                    public void onPanelOpened(View panel) {
                        if (mPanelSlideListener != null) {
                            mPanelSlideListener.onPanelOpened(panel);
                        }
                    }

                    @Override
                    public void onPanelClosed(View panel) {
                        if (mPanelSlideListener != null) {
                            mPanelSlideListener.onPanelClosed(panel);
                        }
                    }
                });
            }
        } else {
            //reset the resizeFunction
            ViewGroup.LayoutParams lp = getContent().getLayoutParams();
            lp.width = ViewGroup.LayoutParams.MATCH_PARENT;
            getContent().setLayoutParams(lp);

            if (mCrossFadeSlidingPaneLayout != null) {
                mCrossFadeSlidingPaneLayout.setPanelSlideListener(mPanelSlideListener);
            }
        }
    }
737419
def __update(self):
        

        # I can not set the size attr because it is my property, so I set the width and height separately
        width, height = self.size
        super(BaseWidget, self).__setattr__("width", width)
        super(BaseWidget, self).__setattr__("height", height)
        super(BaseWidget, self).__setattr__(self.anchor, self.pos)
18788
public function disableAreaLayoutCustomColumnWidths()
    {
        $db = Loader::db();
        $db->Execute('update AreaLayouts set arLayoutIsCustom = ? where arLayoutID = ?', array(0, $this->arLayoutID));
        $this->arLayoutIsCustom = false;
    }
164410
@Override public void updateScale(float verticalDragOffset) {
    layoutParams.width = (int) (getOriginalWidth() * (1 - verticalDragOffset / getXScaleFactor()));
    layoutParams.height = (int) (getOriginalHeight() * (1 - verticalDragOffset / getYScaleFactor()));

    getView().setLayoutParams(layoutParams);
  }
1175791
def update_settings(self):
        """"""
        self.display()
        self.display_markers()
        if self.parent.notes.annot is not None:
            self.parent.notes.display_notes()
1202210
public final void addAreaListener(@NonNull final AreaListener listener) {
        Condition.INSTANCE.ensureNotNull(listener, "The listener may not be null");
        this.areaListeners.add(listener);
    }
908591
void setSize(int x, int y, int z)
    {
        this.sizeX = x;
        this.sizeY = y;
        this.sizeZ = z;
    }
84818
protected void adjustHeight() {

        if ((m_scrollPanel != null) && (m_resourceItem != null)) {
            m_scrollPanel.getElement().getStyle().setPropertyPx(
                "maxHeight",
                getAvailableHeight(m_resourceItem.getOffsetHeight()));
        }
        center();
    }
232502
public void updateInternals()
	{
		if (null == getContainer())
		{
			return;
		}
		super.updateInternals();

		UnitConverter _uc = UnitConverter.getCachedInstance(getContainer().getSheetOfPaper().getPixelPerInch());
		double _zoom = getContainer().convertMillimeterToUnit(_uc.convertPointToMillimiter(1));

		myInternalFont = getFont().deriveFont(AffineTransform.getScaleInstance(_zoom, _zoom));

		// update textformat
		myTextFormat.clear();
		myTextFormat.put(TextAttribute.FONT, myInternalFont);

		myLineBreakMeasurer = new LineBreakMeasurer(new AttributedString(getText(), myTextFormat).getIterator(),
				new FontRenderContext(null, true, true));

		try
		{
			float _wrappingWidth = (float) getFullBounds().getWidth();
			myTextLayout = myLineBreakMeasurer.nextLayout(_wrappingWidth);
			myTextLayouts.clear();
			myTextLayouts.add(myTextLayout);
			while (myLineBreakMeasurer.getPosition() > 0 && myLineBreakMeasurer.getPosition() < getText().length())
			{
				myTextLayouts.add(myLineBreakMeasurer.nextLayout(_wrappingWidth));
			}
		}
		catch (PaperContentIsUnattachedException _exception)
		{
			// Should not arrive
			throw new RuntimeException("Impossible error");
		}
		myBaseLineOffset = myTextLayout.getAscent();
		myTextHeight = myBaseLineOffset + myTextLayout.getDescent();
		myLineHeight = myTextHeight + myTextLayout.getLeading();

		// adjust the height
		double _realHeight = myTextHeight; // at least one line
		if (myTextLayouts.size() > 1)
		{
			_realHeight += ((myTextLayouts.size() - 1) * myLineHeight);
		}
		setCoreHeight(getContainer().convertUnitToMillimeter(_realHeight));
		super.updateInternals();
	}
479356
public Settings setMovementArea(int width, int height) {
        isMovementAreaSpecified = true;
        movementAreaW = width;
        movementAreaH = height;
        return this;
    }
784071
function(size) {
        OpenLayers.Renderer.prototype.setSize.apply(this, arguments);
        
        this.rendererRoot.setAttributeNS(null, "width", this.size.w);
        this.rendererRoot.setAttributeNS(null, "height", this.size.h);
    }
971944
protected void updateAppAttributes(Map<String, Object> attributes) {

        m_rootLayout.setMainHeightFull(Boolean.TRUE.equals(attributes.get(ATTR_MAIN_HEIGHT_FULL)));

        Object infoComponentObj = attributes.get(ATTR_INFO_COMPONENT);
        if (m_infoComponent != null) {
            m_infoLayout.removeComponent(m_infoComponent);
        }
        if (infoComponentObj instanceof Component) {
            m_infoComponent = (Component)infoComponentObj;
            m_infoLayout.addComponent(m_infoComponent);
        }
    }
1325162
public void updateSize() {

        int availableHeight = CmsToolbarPopup.getAvailableHeight();
        int dialogWidth = CmsToolbarPopup.getAvailableWidth();

        A_CmsClipboardTab tab = m_tabs.getWidget(m_tabs.getSelectedIndex());
        int requiredHeight = tab.getRequiredHeight() + 31;
        int dialogHeight = availableHeight > requiredHeight ? requiredHeight : availableHeight;
        m_tabs.getParent().setHeight(dialogHeight + "px");
        getPopup().setWidth(dialogWidth);
        tab.getList().truncate("CLIPBOARD_TM", dialogWidth - 40);
        tab.getScrollPanel().onResizeDescendant();
    }
1235235
private void resize() {
        double width  = getWidth() - getInsets().getLeft() - getInsets().getRight();
        double height = getHeight() - getInsets().getTop() - getInsets().getBottom();
        size          = width < height ? width : height;

        if (size > 0) {
            pane.setMaxSize(size, size);
            pane.relocate((getWidth() - size) * 0.5, (getHeight() - size) * 0.5);
            pane.setBackground(new Background(new BackgroundFill(getChartBackgroundColor(), new CornerRadii(1024), Insets.EMPTY)));

            chartCanvas.setWidth(size);
            chartCanvas.setHeight(size);

            overlayCanvas.setWidth(size);
            overlayCanvas.setHeight(size);

            redraw();
        }
    }
846967
@Override protected void resize() {
        width  = clock.getWidth() - clock.getInsets().getLeft() - clock.getInsets().getRight();
        height = clock.getHeight() - clock.getInsets().getTop() - clock.getInsets().getBottom();

        if (aspectRatio * width > height) {
            width = 1 / (aspectRatio / height);
        } else if (1 / (aspectRatio / height) > width) {
            height = aspectRatio * width;
        }

        centerX = width * 0.5;
        centerY = height * 0.5;

        if (width > 0 && height > 0) {
            pane.setMaxSize(width, height);
            pane.relocate((clock.getWidth() - height) * 0.5, (clock.getHeight() - height) * 0.5);

            canvas.setWidth(width);
            canvas.setHeight(height);
        }
    }
1343455
private void adaptContentContainerVisibility() {
        if (contentContainer != null) {
            if (isCustomViewUsed()) {
                contentContainer.setVisibility(View.VISIBLE);
                notifyOnAreaShown(Area.CONTENT);
            } else {
                contentContainer.setVisibility(View.GONE);
                notifyOnAreaHidden(Area.CONTENT);
            }
        }
    }