Mercurial > dwindows
comparison 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 |
comparison
equal
deleted
inserted
replaced
666:e426de6e6c7c | 667:28727d9a835c |
---|---|
1233 } | 1233 } |
1234 else if([handle isMemberOfClass:[DWRender class]]) | 1234 else if([handle isMemberOfClass:[DWRender class]]) |
1235 { | 1235 { |
1236 _event_handler(handle, nil, 1); | 1236 _event_handler(handle, nil, 1); |
1237 } | 1237 } |
1238 else if([handle isMemberOfClass:[WebView class]]) | |
1239 { | |
1240 NSLog(@"x: %d y: %d width: %d height: %d", (int)point.x, (int)point.y, (int)size.width, (int)size.height); | |
1241 } | |
1242 | 1238 |
1243 if(thisbox->type == DW_HORZ) | 1239 if(thisbox->type == DW_HORZ) |
1244 currentx += width + vectorx + (pad * 2); | 1240 currentx += width + vectorx + (pad * 2); |
1245 if(thisbox->type == DW_VERT) | 1241 if(thisbox->type == DW_VERT) |
1246 currenty += height + vectory + (pad * 2); | 1242 currenty += height + vectory + (pad * 2); |
4276 */ | 4272 */ |
4277 void API dw_notebook_pack(HWND handle, ULONG pageid, HWND page) | 4273 void API dw_notebook_pack(HWND handle, ULONG pageid, HWND page) |
4278 { | 4274 { |
4279 DWNotebook *notebook = handle; | 4275 DWNotebook *notebook = handle; |
4280 DWNotebookPage *notepage = _notepage_from_id(notebook, pageid); | 4276 DWNotebookPage *notepage = _notepage_from_id(notebook, pageid); |
4281 DWBox *box = page; | |
4282 | 4277 |
4283 if(notepage != nil) | 4278 if(notepage != nil) |
4284 { | 4279 { |
4280 HWND tmpbox = dw_box_new(DW_VERT, 0); | |
4281 DWBox *box = tmpbox; | |
4282 | |
4283 dw_box_pack_start(tmpbox, page, 0, 0, TRUE, TRUE, 0); | |
4285 [notepage setView:box]; | 4284 [notepage setView:box]; |
4286 } | 4285 } |
4287 } | 4286 } |
4288 | 4287 |
4289 /* | 4288 /* |