Skip to content

Fullscreen does not work properly when setting width or height of a widget #197

@cookie-tea

Description

@cookie-tea

Describe the bug
When you set a width or height in the Position/Shape section of the settings for a widget and then enter the fullscreen mode, the width and height is still the width and height that was set instead of 100%.

To Reproduce
Steps to reproduce the behavior:

  1. Add any widget that supports fullscreen mode (for example Block-Based Code)
  2. Change width and height in the settings of the widget to a custom value
Image
  1. Enter fullscreen mode in the widget
  2. See error

Screenshots

Image

Desktop (please complete the following information):

  • OS: [Linux]
  • WebWriter Version [1.9.3]

Additional context
The ww-fullscreen class which is added to the element has width and height set to 100%, but the priority is not high enough so it is overwritten by the widget width and height. Maybe a solution could be to set the width and height to "100% !important".

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions