mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-07-19 23:16:48 +00:00
split ui view clamp rule into separate x/y flags
This commit is contained in:
+2
-1
@@ -4042,6 +4042,7 @@ df_window_update_and_render(Arena *arena, OS_EventList *events, DF_Window *ws, D
|
||||
UI_BoxFlag_Clip|
|
||||
UI_BoxFlag_AllowOverflowY|
|
||||
UI_BoxFlag_ViewScroll|
|
||||
UI_BoxFlag_ViewClamp|
|
||||
UI_BoxFlag_Floating|
|
||||
UI_BoxFlag_AnimatePos|
|
||||
UI_BoxFlag_Clickable|
|
||||
@@ -5562,7 +5563,7 @@ df_window_update_and_render(Arena *arena, OS_EventList *events, DF_Window *ws, D
|
||||
// rjf: build
|
||||
UI_CornerRadius(0)
|
||||
{
|
||||
UI_Rect(tab_bar_rect) tab_bar_box = ui_build_box_from_stringf(UI_BoxFlag_Clip|UI_BoxFlag_AllowOverflowY|UI_BoxFlag_ViewScroll|UI_BoxFlag_Clickable, "tab_bar_%p", panel);
|
||||
UI_Rect(tab_bar_rect) tab_bar_box = ui_build_box_from_stringf(UI_BoxFlag_Clip|UI_BoxFlag_AllowOverflowY|UI_BoxFlag_ViewClampX|UI_BoxFlag_ViewScroll|UI_BoxFlag_Clickable, "tab_bar_%p", panel);
|
||||
if(panel->tab_side == Side_Max)
|
||||
{
|
||||
tab_bar_box->view_off.y = tab_bar_box->view_off_target.y = (tab_bar_rheight - tab_bar_vheight);
|
||||
|
||||
Reference in New Issue
Block a user