Commit c57e2d79 by Daniel Dahan

development: updated Grid.deferred to lazy calculate grid properties

parent 4d2a95fb
...@@ -220,7 +220,6 @@ open class ControlView: View { ...@@ -220,7 +220,6 @@ open class ControlView: View {
} }
grid.deferred = false grid.deferred = false
grid.reload()
} }
} }
......
...@@ -108,7 +108,13 @@ public class GridOffset { ...@@ -108,7 +108,13 @@ public class GridOffset {
public class Grid { public class Grid {
/// Defer the calculation. /// Defer the calculation.
public var deferred = false public var deferred = false {
didSet {
if !deferred {
reload()
}
}
}
/// Context view. /// Context view.
internal weak var context: UIView? internal weak var context: UIView?
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment