apache / royale-asjs

Apache Royale ASJS
Apache License 2.0
372 stars 116 forks source link

DateChooser with no width or percentage width messes up when clicking on next or previous month buttons #22

Open justinmclean opened 7 years ago

justinmclean commented 7 years ago

When clicking on the previous or next month buttons A DateChooser rows become messed up like so: 2017-10-09_18-13-24

Sample code to reproduce:

<?xml version="1.0" encoding="utf-8"?>
<js:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                xmlns:js="library://ns.apache.org/flexjs/basic">

    <js:valuesImpl>
        <js:SimpleCSSValuesImpl/>
    </js:valuesImpl>

    <js:initialView>
        <js:View>
            <js:Group id="content">
                <js:beads>
                    <js:VerticalLayout />
                </js:beads>
                <js:DateChooser />
            </js:Group>
        </js:View>
    </js:initialView>

</js:Application>
justinmclean commented 7 years ago

If the DateChooser is given a percentage width the width will no be constant but jump about as you step through the months.

Setting an explicit width on the parent group seems to fix this in simple cases.

pentapache commented 7 years ago

I can confirm this on the JS platform. The SWF version has a default size and does not exhibit this behavior.