Mercurial > dwindows
diff mac/dw.m @ 667:28727d9a835c
Fix for a rather serious notebook layout bug.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sat, 26 Feb 2011 20:40:54 +0000 |
parents | e426de6e6c7c |
children | 7b99731c6484 |
line wrap: on
line diff
--- 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]; } }