You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by jo...@apache.org on 2024/09/06 20:28:45 UTC
(flex-blazeds) branch develop updated: inventory: tab section content should be scrollable
This is an automated email from the ASF dual-hosted git repository.
joshtynjala pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/flex-blazeds.git
The following commit(s) were added to refs/heads/develop by this push:
new 7011cd7 inventory: tab section content should be scrollable
7011cd7 is described below
commit 7011cd742c465830482db69a4624819569472e9f
Author: Josh Tynjala <jo...@apache.org>
AuthorDate: Fri Sep 6 13:28:34 2024 -0700
inventory: tab section content should be scrollable
---
.../frontend/inventory/src/main/royale/Main.mxml | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/samples/classic-turnkey-samples/frontend/inventory/src/main/royale/Main.mxml b/samples/classic-turnkey-samples/frontend/inventory/src/main/royale/Main.mxml
index 1b9bc4f..731570c 100644
--- a/samples/classic-turnkey-samples/frontend/inventory/src/main/royale/Main.mxml
+++ b/samples/classic-turnkey-samples/frontend/inventory/src/main/royale/Main.mxml
@@ -29,9 +29,9 @@
<fx:Script>
<![CDATA[
import org.apache.royale.collections.ArrayList;
- import org.apache.royale.jewel.SectionContent;
- import org.apache.royale.reflection.registerClassAlias;
import org.apache.royale.core.WrappedHTMLElement;
+ import org.apache.royale.jewel.ScrollableSectionContent;
+ import org.apache.royale.reflection.registerClassAlias;
import org.apache.royale.utils.UIUtils;
[Bindable]
@@ -58,7 +58,7 @@
// Check if product is already opened in an existing tab
for (var i:int = 0; i < tabBarContent.numElements; i++)
{
- var child:SectionContent = tabBarContent.getElementAt(i) as SectionContent;
+ var child:ScrollableSectionContent = tabBarContent.getElementAt(i) as ScrollableSectionContent;
var form:ProductForm = child.getElementAt(0) as ProductForm;
if (form.product.productId == product.productId) {
tabBar.selectedIndex = i;
@@ -69,7 +69,7 @@
var tabLabel:String = product.productId > 0 ? product.name : 'New Product';
- var sectionContent:SectionContent = new SectionContent();
+ var sectionContent:ScrollableSectionContent = new ScrollableSectionContent();
sectionContent.name = tabLabel;
form = new ProductForm();
form.addEventListener(Event.CLOSE, productFormCloseHandler);
@@ -104,7 +104,7 @@
protected function productFormCloseHandler(event:Event):void
{
var form:ProductForm = event.currentTarget as ProductForm;
- var sectionContent:SectionContent = form.parent as SectionContent;
+ var sectionContent:ScrollableSectionContent = form.parent as ScrollableSectionContent;
var childIndex:int = tabBarContent.getElementIndex(sectionContent);
if (childIndex == -1)
{