Bug 9018: REGRESSION: resizing the top area of the inspector does not grow as expected
http://bugzilla.opendarwin.org/show_bug.cgi?id=9018
Use clientHeight now that offsetHeight includes the border and padding.
clientHeight should have been used initially.
* WebInspector/WebInspector.m:
(-[WebInspector resizeTopArea]):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14504
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2006-05-20 Timothy Hatcher <timothy@apple.com>
+
+ Reviewed by Anders.
+
+ Bug 9018: REGRESSION: resizing the top area of the inspector does not grow as expected
+ http://bugzilla.opendarwin.org/show_bug.cgi?id=9018
+
+ Use clientHeight now that offsetHeight includes the border and padding.
+ clientHeight should have been used initially.
+
+ * WebInspector/WebInspector.m:
+ (-[WebInspector resizeTopArea]):
+
2006-05-18 Maciej Stachowiak <mjs@apple.com>
Reviewed by Eric.
proposedRect.size.height = maxSize.height;
}
- NSNumber *baseValue = [topArea valueForKey:@"offsetHeight"];
+ NSNumber *baseValue = [topArea valueForKey:@"clientHeight"];
NSString *newValue = [NSString stringWithFormat:@"%dpx", [baseValue unsignedLongValue] - delta];
[[topArea style] setProperty:@"height" :newValue :@""];