Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On Windows 10, TextBox in hello.rs example does not resize to fit placeholder text #1309

Closed
bzm3r opened this issue Oct 14, 2020 · 1 comment · Fixed by linebender/piet#340 or #1338
Labels
bug does not behave the way it is supposed to shell/win concerns the Windows backend

Comments

@bzm3r
Copy link

bzm3r commented Oct 14, 2020

On Windows 10, I modified the bleeding edge Hello World example (hello.rs) so that it looks like

// a textbox that modifies `name`.
    let textbox = TextBox::new()
        .with_placeholder("Who are we greeting?")
        .with_text_size(22.0) // Used to be `with_text_size(18.0)`
        .fix_width(TEXT_BOX_WIDTH)
        .lens(HelloState::name);

The text box does resize correctly to the height of the place holder text:

hello-world

@cmyr
Copy link
Member

cmyr commented Oct 14, 2020

Cool, thanks @bzm3r! this is an issue with how I'm storing default attributes in piet, will open an issue there.

@cmyr cmyr added bug does not behave the way it is supposed to shell/win concerns the Windows backend labels Oct 14, 2020
@cmyr cmyr mentioned this issue Oct 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug does not behave the way it is supposed to shell/win concerns the Windows backend
Projects
None yet
2 participants