# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1298752854 0 # Node ID 28727d9a835cb81a55706e5936547e5ea2bca7a9 # Parent e426de6e6c7ca459606d51e38244903af4ed5648 Fix for a rather serious notebook layout bug. diff -r e426de6e6c7c -r 28727d9a835c mac/dw.m --- a/mac/dw.m Sat Feb 26 16:07:04 2011 +0000 +++ b/mac/dw.m Sat Feb 26 20:40:54 2011 +0000 @@ -1235,10 +1235,6 @@ { _event_handler(handle, nil, 1); } - else if([handle isMemberOfClass:[WebView class]]) - { - NSLog(@"x: %d y: %d width: %d height: %d", (int)point.x, (int)point.y, (int)size.width, (int)size.height); - } if(thisbox->type == DW_HORZ) currentx += width + vectorx + (pad * 2); @@ -4278,10 +4274,13 @@ { DWNotebook *notebook = handle; DWNotebookPage *notepage = _notepage_from_id(notebook, pageid); - DWBox *box = page; if(notepage != nil) { + HWND tmpbox = dw_box_new(DW_VERT, 0); + DWBox *box = tmpbox; + + dw_box_pack_start(tmpbox, page, 0, 0, TRUE, TRUE, 0); [notepage setView:box]; } }