Commit fdc45a95 by Daniel Dahan

development: adjustment to fix (issue-344)

parent 79fcf1c3
......@@ -201,7 +201,17 @@ open class ControlView: View {
grid.views.append(v)
}
contentView.grid.columns = columns - (isCenteredContentView ? 2 * max(lc, rc) : lc + rc)
if isCenteredContentView {
if lc < rc {
contentView.grid.columns = columns - 2 * rc
contentView.grid.offset.columns = rc - lc
} else {
contentView.grid.columns = columns - 2 * lc
rightControls.first?.grid.offset.columns = lc - rc
}
} else {
contentView.grid.columns = columns - lc - rc
}
grid.deferred = false
grid.reload()
......
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