Reviewed by Anders.
authorthatcher <thatcher@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 20 May 2006 22:42:59 +0000 (22:42 +0000)
committerthatcher <thatcher@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 20 May 2006 22:42:59 +0000 (22:42 +0000)
        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

WebKit/ChangeLog
WebKit/WebInspector/WebInspector.m

index 10f4cd6719f28536ca1990e89ce44c201b2769a7..ddd129eb85d030033f6f7a22b2f84c9741041100 100644 (file)
@@ -1,3 +1,16 @@
+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.
index 9d8cbfe78e6cd1fd738ec953c0c1f5bc0c3c33f8..d5a9e45043aebbd3e678feba61c8fb49a9f5238e 100644 (file)
@@ -372,7 +372,7 @@ static NSMapTable *lastChildIgnoringWhitespaceCache = NULL;
             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 :@""];