flexible-elements-were-a-mistake #11
@ -186,6 +186,12 @@ func (element *DocumentContainer) redoAll () {
|
|||||||
|
|
||||||
// do a layout
|
// do a layout
|
||||||
element.doLayout()
|
element.doLayout()
|
||||||
|
|
||||||
|
maxScrollHeight := element.maxScrollHeight()
|
||||||
|
if element.scroll.Y > maxScrollHeight {
|
||||||
|
element.scroll.Y = maxScrollHeight
|
||||||
|
element.doLayout()
|
||||||
|
}
|
||||||
|
|
||||||
// draw a background
|
// draw a background
|
||||||
rocks := make([]image.Rectangle, len(element.children))
|
rocks := make([]image.Rectangle, len(element.children))
|
||||||
|
Reference in New Issue
Block a user