This is an automated email from the ASF dual-hosted git repository.

carlosrovira pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
     new 4c36170  jewel-combobox: fix list size not updating to match the 
component's width when combo's width resize
4c36170 is described below

commit 4c361705200e338921f36a38fd1f31a469e67cc0
Author: Carlos Rovira <[email protected]>
AuthorDate: Sat Feb 8 10:47:13 2020 +0100

    jewel-combobox: fix list size not updating to match the component's width 
when combo's width resize
---
 .../main/royale/org/apache/royale/jewel/beads/views/ComboBoxView.as  | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git 
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/ComboBoxView.as
 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/ComboBoxView.as
index 692e130..7f164b1 100644
--- 
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/ComboBoxView.as
+++ 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/ComboBoxView.as
@@ -199,6 +199,8 @@ package org.apache.royale.jewel.beads.views
 
                     // popup is ComboBoxPopUp that fills 100% of browser 
window-> We want the internal List inside its view to adjust height
                     _list = (_comboPopUp.view as ComboBoxPopUpView).list;
+                                       //popup width needs to be set before 
position inside bounding client to work ok
+                                       _list.width = host.width;
                     // _list.model = _comboPopUp.model;
 
                     COMPILE::JS
@@ -323,9 +325,6 @@ package org.apache.royale.jewel.beads.views
                                // Desktop width size
                                if(outerWidth >= 
ResponsiveSizes.TABLET_BREAKPOINT)
                                {
-                                       //popup width needs to be set before 
position inside bounding client to work ok
-                                       _list.width = _textinput.width + 
_button.width;
-
                                        var origin:Point = new Point(0, 
button.y + button.height - top);
                                        var relocated:Point = 
positionInsideBoundingClientRect(_strand, _list, origin);
                                        var point:Point = 
PointUtils.localToGlobal(origin, _strand);

Reply via email to