comparison dwt/layout/FillLayout.d @ 8:a9ab4c738ed8

Fix: instanceof
author Frank Benoit <benoit@tionex.de>
date Wed, 27 Aug 2008 14:32:39 +0200
parents e831403a80a9
children fbe68c33eeee
comparison
equal deleted inserted replaced
7:e831403a80a9 8:a9ab4c738ed8
153 if (wHint is DWT.DEFAULT && hHint is DWT.DEFAULT) { 153 if (wHint is DWT.DEFAULT && hHint is DWT.DEFAULT) {
154 size = data.computeSize (control, wHint, hHint, flushCache); 154 size = data.computeSize (control, wHint, hHint, flushCache);
155 } else { 155 } else {
156 // TEMPORARY CODE 156 // TEMPORARY CODE
157 int trimX, trimY; 157 int trimX, trimY;
158 if (control instanceof Scrollable) { 158 if ( null !is cast(Scrollable)control ) {
159 Rectangle rect = (cast(Scrollable) control).computeTrim (0, 0, 0, 0); 159 Rectangle rect = (cast(Scrollable) control).computeTrim (0, 0, 0, 0);
160 trimX = rect.width; 160 trimX = rect.width;
161 trimY = rect.height; 161 trimY = rect.height;
162 } else { 162 } else {
163 trimX = trimY = control.getBorderWidth () * 2; 163 trimX = trimY = control.getBorderWidth () * 2;