This is an automated email from the ASF dual-hosted git repository.
hugoferreira 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 8aaf5c83fe List width updated with ComboBox percentage width
8aaf5c83fe is described below
commit 8aaf5c83fefa477b36b4eca8f0e207018afb089a
Author: Hugo Ferreira <[email protected]>
AuthorDate: Sun May 15 12:24:34 2022 +0100
List width updated with ComboBox percentage width
---
.../royale/org/apache/royale/jewel/beads/views/ComboBoxView.as | 10 ++++++++++
1 file changed, 10 insertions(+)
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 2d8f4021a8..b66bbabb87 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
@@ -212,7 +212,17 @@ package org.apache.royale.jewel.beads.views
_list = (_comboPopUp.view as ComboBoxPopUpView).list;
//popup width needs to be set before
position inside bounding client to work ok
+ COMPILE::JS
+ {
+ if (isNaN((host as
ComboBox).percentWidth))
+ _list.width = host.width;
+ else
+ _list.width =
host.element.offsetWidth;
+ }
+ COMPILE::SWF
+ {
_list.width = host.width;
+ }
COMPILE::JS
{