From 854b0c8b989b859bf6095779e0d99bb99eade1fa Mon Sep 17 00:00:00 2001 From: RodZill4 Date: Thu, 17 Oct 2019 07:39:36 +0200 Subject: [PATCH] Fixed size of gradient popup (which could change when resizing the main window) --- .../material_maker/widgets/gradient_popup.tscn | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/addons/material_maker/widgets/gradient_popup.tscn b/addons/material_maker/widgets/gradient_popup.tscn index fe76a53..8058460 100644 --- a/addons/material_maker/widgets/gradient_popup.tscn +++ b/addons/material_maker/widgets/gradient_popup.tscn @@ -3,20 +3,21 @@ [ext_resource path="res://addons/material_maker/widgets/gradient_popup.gd" type="Script" id=1] [ext_resource path="res://addons/material_maker/widgets/gradient_editor.tscn" type="PackedScene" id=2] -[sub_resource type="StyleBoxFlat" id=2] +[sub_resource type="StyleBoxFlat" id=1] bg_color = Color( 0, 0, 0.25098, 0.752941 ) [node name="GradientPopup" type="Popup"] -anchor_right = 1.0 -anchor_bottom = 1.0 -margin_right = -648.0 -margin_bottom = -671.0 +visible = true +margin_right = 632.0 +margin_bottom = 49.0 +size_flags_horizontal = 0 +size_flags_vertical = 0 script = ExtResource( 1 ) [node name="Panel" type="Panel" parent="."] -anchor_right = 1.0 -anchor_bottom = 1.0 -custom_styles/panel = SubResource( 2 ) +margin_right = 632.0 +margin_bottom = 49.0 +custom_styles/panel = SubResource( 1 ) [node name="Control" parent="Panel" instance=ExtResource( 2 )] anchor_right = 1.0