Skip to content

Cannot change the width of the widget "Password" #2437

@piyueh

Description

@piyueh

Not sure if this is intentional or not, but it seems the widget Password's width can't be changed, unlike the width of its parent class Text. Here's an example:

import ipywidgets
a = ipywidgets.Password(layout=ipywidgets.Layout(width="15%"))
b = ipywidgets.Password(layout=ipywidgets.Layout(width="100%"))
display(a, b)

And I got two input columns with exactly the same width.

I'm using ipywidgets v7.4.2, Jupyter Notebook v5.7.8 , Python v3.6.8, and IPython v7.4.0. All from Anaconda. Also, the browser I'm using is Google Chrome v75.0.3770.80.

Is this an issue? Or is it what it's supposed to be? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    resolved-lockedClosed issues are locked after 30 days inactivity. Please open a new issue for related discussion.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions