Skip to content

Commit 0f05836

Browse files
fix(shell): context menu layout
1 parent a977285 commit 0f05836

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dependencies/breeze-ui.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ package("breeze-glfw")
55

66
package("breeze-ui")
77
add_urls("https://github.com/std-microblock/breeze-ui.git")
8-
add_versions("2025.10.09+2", "6cda70342717701f7074e3d57356e18ae29a0474")
8+
add_versions("2025.10.09+6", "f00fdc71afd9ffbd5cd919d0367f2efb4798e48a")
99
add_deps("breeze-glfw", "nanovg", "glad", "nanosvg")
1010
add_configs("shared", {description = "Build shared library.", default = false, type = "boolean", readonly = true})
1111

src/shell/contextmenu/menu_widget.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -646,8 +646,8 @@ std::pair<float, float> mb_shell::mouse_menu_widget_main::calculate_position(
646646
float anchor_y, popup_direction direction) {
647647

648648
menu_wid->update(ctx);
649-
auto menu_width = menu_wid->measure_width(ctx);
650-
auto menu_height = menu_wid->measure_height(ctx);
649+
auto menu_width = menu_wid->width->dest();
650+
auto menu_height = menu_wid->height->dest();
651651

652652
float x, y;
653653

0 commit comments

Comments
 (0)