aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--client/menu/smart_margin_container.gd6
1 files changed, 3 insertions, 3 deletions
diff --git a/client/menu/smart_margin_container.gd b/client/menu/smart_margin_container.gd
index 43fd4c4f..046dc6f3 100644
--- a/client/menu/smart_margin_container.gd
+++ b/client/menu/smart_margin_container.gd
@@ -15,7 +15,7 @@
#
extends MarginContainer
class_name SmartMarginContainer
-# A smart margin container which automatically
+# A smart margin container which automatically adjusts the margin such that it doesn't cover notch on phones
func _ready() -> void:
var os := OS.get_name()
@@ -31,11 +31,11 @@ func update_margins() -> void:
var top := viewport_safe_rect.position.y - viewport_full_rect.position.y
var right := viewport_full_rect.end.x - viewport_safe_rect.end.x
var bottom := viewport_full_rect.end.y - viewport_safe_rect.end.y
- print("OLD: ", get_theme_constant("margin_left"))
+ # print("OLD: ", get_theme_constant("margin_left"))
begin_bulk_theme_override()
add_theme_constant_override('margin_left', roundi(left) + get_theme_constant("margin_left"))
add_theme_constant_override('margin_top', roundi(top) + get_theme_constant("margin_top"))
add_theme_constant_override('margin_right', roundi(right) + get_theme_constant("margin_right"))
add_theme_constant_override('margin_bottom', roundi(bottom) + get_theme_constant("margin_bottom"))
end_bulk_theme_override()
- print("NEW: ", get_theme_constant("margin_left"))
+ # print("NEW: ", get_theme_constant("margin_left"))