diff --git a/frames/window_eventtracker.lua b/frames/window_eventtracker.lua index 2e91b97a..fb413252 100644 --- a/frames/window_eventtracker.lua +++ b/frames/window_eventtracker.lua @@ -238,8 +238,14 @@ function Details:CreateEventTrackerFrame(parent, name) --> main farame local f = CreateFrame ("frame", name, parent or UIParent,"BackdropTemplate") f:SetPoint ("center", UIParent, "center") - f:SetMinResize (150, 40) - f:SetMaxResize (800, 1024) + + if (not DetailsFramework.IsDragonflight()) then + f:SetMinResize (150, 40) + f:SetMaxResize (800, 1024) + else + --f:SetResizeBounds(150, 40, 800, 1024) + end + f:SetSize (_detalhes.event_tracker.frame.width, _detalhes.event_tracker.frame.height) f:SetBackdrop ({bgFile = [[Interface\Tooltips\UI-Tooltip-Background]], tile = true, tileSize = 16, insets = {left = 0, right = 0, top = 0, bottom = 0}}) diff --git a/frames/window_main.lua b/frames/window_main.lua index 53a93e60..1318d738 100644 --- a/frames/window_main.lua +++ b/frames/window_main.lua @@ -3664,8 +3664,13 @@ function gump:CriaJanelaPrincipal (ID, instancia, criando) baseframe:SetPoint ("center", _UIParent) baseframe:EnableMouseWheel (false) baseframe:EnableMouse (true) - baseframe:SetMinResize (150, 7) - baseframe:SetMaxResize (_detalhes.max_window_size.width, _detalhes.max_window_size.height) + + if (not DetailsFramework.IsDragonflight()) then + baseframe:SetMinResize (150, 7) + baseframe:SetMaxResize (_detalhes.max_window_size.width, _detalhes.max_window_size.height) + else + --baseframe:SetResizeBounds(150, 7, _detalhes.max_window_size.width, _detalhes.max_window_size.height) + end baseframe:SetBackdrop (gump_fundo_backdrop) baseframe:SetBackdropColor (instancia.bg_r, instancia.bg_g, instancia.bg_b, instancia.bg_alpha) diff --git a/plugins/Details_Streamer/Details_Streamer.lua b/plugins/Details_Streamer/Details_Streamer.lua index 38a87fe5..0462e6da 100644 --- a/plugins/Details_Streamer/Details_Streamer.lua +++ b/plugins/Details_Streamer/Details_Streamer.lua @@ -212,9 +212,14 @@ local function CreatePluginFrames() SOF:SetMovable (true) SOF:SetResizable (true) SOF:SetClampedToScreen (true) - SOF:SetMinResize (150, 10) - SOF:SetMaxResize (800, 1024) - + + if (not DetailsFramework.IsDragonflight()) then + SOF:SetMinResize (150, 10) + SOF:SetMaxResize (800, 1024) + else + --SOF:SetResizeBounds(150, 10, 800, 1024) + end + function StreamOverlay:SaveWindowSizeAnLocation() --> save size first StreamOverlay.db.main_frame_size [1] = SOF:GetWidth()