Skip to content

Commit

Permalink
Don't forget the % in the comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
demonnic committed Jun 28, 2020
1 parent 2b23ce2 commit 46b9ee4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/mudlet-lua/lua/geyser/GeyserHBox.lua
Expand Up @@ -42,13 +42,13 @@ function Geyser.HBox:organize()
window:move(start_x.."%", "0%")
if window.h_policy == Geyser.Dynamic then
width = window_width * window.h_stretch_factor
if window.width ~= width then
if window.width ~= width .. "%" then
window:resize(width .. "%", nil)
end
end
if window.v_policy == Geyser.Dynamic then
height = 100
if window.height ~= height then
if window.height ~= height .. "%" then
window:resize(nil, height .. "%")
end
end
Expand Down
4 changes: 2 additions & 2 deletions src/mudlet-lua/lua/geyser/GeyserVBox.lua
Expand Up @@ -43,13 +43,13 @@ function Geyser.VBox:organize()
local height = (window:get_height() / self:get_height()) * 100
if window.h_policy == Geyser.Dynamic then
width = 100
if window.width ~= width then
if window.width ~= width .. "%" then
window:resize(width .. "%", nil)
end
end
if window.v_policy == Geyser.Dynamic then
height = window_height * window.v_stretch_factor
if window.height ~= height then
if window.height ~= height .. "%" then
window:resize(nil, height .. "%")
end
end
Expand Down

0 comments on commit 46b9ee4

Please sign in to comment.