Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Furnadjiev2017-04-03 10:43:35 +0000
committerIvan Furnadjiev2017-04-03 10:43:35 +0000
commitdcebb82cca0c0e24274c8066876e5a65814184e4 (patch)
tree01a9bce020e808430370315af2cbd31131f51636 /bundles
parentd4d6c5186f6477eeb7810d967cd2f96cc744be9c (diff)
downloadorg.eclipse.rap-dcebb82cca0c0e24274c8066876e5a65814184e4.tar.gz
org.eclipse.rap-dcebb82cca0c0e24274c8066876e5a65814184e4.tar.xz
org.eclipse.rap-dcebb82cca0c0e24274c8066876e5a65814184e4.zip
Update DropDown position after the popup height is set
DropDown#renderPosition depends on popup height when it's rendered above the text field. Change-Id: I46d1ab8ec086ed6f4a1dad40ef9eae58c7301b5f
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.rap.rwt/js/rwt/widgets/DropDown.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.rap.rwt/js/rwt/widgets/DropDown.js b/bundles/org.eclipse.rap.rwt/js/rwt/widgets/DropDown.js
index a4e0008179..340acde820 100644
--- a/bundles/org.eclipse.rap.rwt/js/rwt/widgets/DropDown.js
+++ b/bundles/org.eclipse.rap.rwt/js/rwt/widgets/DropDown.js
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2013, 2016 EclipseSource and others.
+ * Copyright (c) 2013, 2017 EclipseSource and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -373,10 +373,10 @@
var gridWidth = calcGridWidth.apply( this );
var gridHeight = calcGridHeight.apply( this, [ visibleItems, itemHeight ] );
var itemWidth = computeItemWidth.apply( this, [ gridWidth, padding ] );
- renderPosition.call( this );
var frameWidth = getStyleMap.call( this ).border.getWidthLeft() * 2;
this._.popup.setWidth( gridWidth + frameWidth );
this._.popup.setHeight( gridHeight + frameWidth );
+ renderPosition.call( this );
this._.grid.setDimension( gridWidth, gridHeight );
renderItemMetrics.apply( this, [ itemHeight, itemWidth, padding ] );
updateScrollBars.apply( this, [ gridWidth, itemWidth ] );

Back to the top