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

[🐛 BUG] Issue with width of selectors when inline=True #2459

Open
1 of 7 tasks
FlorianJacta opened this issue Feb 24, 2025 · 0 comments
Open
1 of 7 tasks

[🐛 BUG] Issue with width of selectors when inline=True #2459

FlorianJacta opened this issue Feb 24, 2025 · 0 comments
Labels
🖰 GUI Related to GUI 💥Malfunction Addresses an identified problem. 🟨 Priority: Medium Not blocking but should be addressed

Comments

@FlorianJacta
Copy link
Member

FlorianJacta commented Feb 24, 2025

What went wrong? 🤔

The width of the selector is not equal to 120px even if specified.

Image

We also see that the two boxes are not vertically aligned.

Expected Behavior

The width should be 120px on the app.

Steps to Reproduce Issue

from taipy import Gui
import taipy.gui.builder as tgb

first_name = ""
statuses = ["Active", "Inactive", "Pending"]
status = "Active"

with tgb.Page() as page:
    tgb.input(
        "{first_name}",
        label="First Name",
        width="120px",
        inline=True,
    )
    tgb.selector(
        "{status}",
        lov=statuses,
        dropdown=True,
        label="Status",
        width="120px",
        inline=True,
    )


if __name__ == "__main__":
    gui = Gui(page)
    gui.run(title="Taipy Layout Test", debug=True)

Image

Version of Taipy

4.0.2

Additional Context

Acceptance Criteria

  • A unit test reproducing the bug is added.
  • Any new code is covered by a unit tested.
  • Check code coverage is at least 90%.
  • The bug reporter validated the fix.
  • Related issue(s) in taipy-doc are created for documentation and Release Notes are updated.

Code of Conduct

  • I have checked the existing issues.
  • I am willing to work on this issue (optional)
@FlorianJacta FlorianJacta added 💥Malfunction Addresses an identified problem. 🖰 GUI Related to GUI 🟨 Priority: Medium Not blocking but should be addressed labels Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🖰 GUI Related to GUI 💥Malfunction Addresses an identified problem. 🟨 Priority: Medium Not blocking but should be addressed
Projects
None yet
Development

No branches or pull requests

1 participant