fuse-open / fuselibs

Fuselibs is the Uno-libraries that provide the UI framework used in Fuse apps
https://npmjs.com/package/@fuse-open/fuselibs
MIT License
176 stars 72 forks source link

Android - TextInput - when not focused, text is invisible #1407

Closed AndrewEQ closed 3 years ago

AndrewEQ commented 3 years ago

When Alignment is Center or Right, the text is not visible when not focused on the input.

Tested on Android 9 & 10

@ichan-mb sounds similar to the other issue you resolved: https://github.com/fuse-open/fuselibs/pull/1405

ichan-mb commented 3 years ago

Yeah.. it should have been fixed by #1405

ckarmy commented 3 years ago

This is fixed? I try in teh last version and I have the same problem

Example: (when I press Reset disappear)

<App>
    <JavaScript>
        var Observable = require("FuseJS/Observable");
        var MyNumber = Observable("23");

        function Reset() {
            MyNumber.value = "0";
        }

        module.exports = {
            MyNumber: MyNumber,
            Reset: Reset
        };
    </JavaScript>

    <StackPanel Background="#fff">
        <TextInput Value="{MyNumber}" TextAlignment="Center" InputHint="Decimal" TextWrapping="Wrap" Alignment="Center" Width="90%" Padding="4" FontSize="50" TextColor="#000" CaretColor="#000" Margin="0,15,0,0">
            <WhileContainsText>
                <Change PlaceHolderTextViewerNumero.Opacity="0" />
            </WhileContainsText>

            <Text ux:Name="PlaceHolderTextViewerNumero" FontSize="14" TextColor="{ColorPrincipal}" Opacity="0.6" Value="Respuesta:" />
            <Rectangle Height="2." Width="100%" Color="{ColorPrincipal}" Opacity="0.5" X="0%" Y="100%" />
        </TextInput>

        <Button Text="Reset">
            <Clicked Handler="{Reset}" />
        </Button>
    </StackPanel>
</App>
ichan-mb commented 3 years ago

Sorry, I have mistaken, the issue that has been resolved is for the TextView, for theTextInput I'll try to investigate

ckarmy commented 3 years ago

Yes, the problem was in textview but now I found it in textinput.

Thanks!!

ichan-mb commented 3 years ago

It has been fixed by this PR: https://github.com/fuse-open/fuselibs/pull/1414