Merge pull request #3199 from psychon/grid_direction_properties

Fix setters/getters for grid layout direction properties
This commit is contained in:
mergify[bot] 2020-10-13 07:23:23 +00:00 committed by GitHub
commit cc67a5b40b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -692,7 +692,7 @@ end
-- getting the common property returns the directional property -- getting the common property returns the directional property
-- defined by the `orientation` property -- defined by the `orientation` property
for _, prop in ipairs(dir_properties) do for _, prop in ipairs(dir_properties) do
for _,dir in ipairs{"horizontal_, vertical_"} do for _,dir in ipairs{"horizontal", "vertical"} do
local dir_prop = dir .. "_" .. prop local dir_prop = dir .. "_" .. prop
grid["set_"..dir_prop] = function(self, value) grid["set_"..dir_prop] = function(self, value)
if self._private[dir_prop] ~= value then if self._private[dir_prop] ~= value then