Skip to content

border-box and dialog resizing problem #1979

Closed
@mcanepa

Description

@mcanepa

Having this CSS:

*
{
    box-sizing: border-box;
}

If you try to resize a dialog, then the inner content (ui-dialog-content) is resized wrongly

See this fiddle: http://jsfiddle.net/QBqff/2/

A workaround is suggested in https://bugs.jqueryui.com/ticket/9137

Using this CSS:

.ui-resizable, .ui-resizable * {
    box-sizing: content-box;
}

but that affects the size of several elements I have inside the dialog

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions