Files
ladybird/Userland/Libraries/LibGUI
Domenico Iezzi bc9bba1d9b LibGUI: Explicitly fire a resize event when toggling Calendar mode
Calendar::toggle_mode function performed a call to Widget::resize with
swapped width and height parameters as a quick way to trigger a
resize_event (resize event is generated only when the new rect size is
different from the old one, hence the swapped parameters).

This method does not work when width and height are equal, such as in
the DatePicker widget where width and height are fixed to 200x200. In
such case, calls to Calendar::toggle_mode would not generate a resize
event, leaving tiles uninitialized, therefore the widget was not able
to properly paint the Month view.

This commit replaces Widget::resize call with a manual triggering of
the event.
2024-02-24 18:54:51 -07:00
..
2024-01-26 07:36:53 +01:00
2024-01-06 10:37:53 -07:00
2023-02-21 00:54:04 +01:00
2023-01-11 10:24:51 +01:00
2023-01-11 10:24:51 +01:00