OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
3 * Copyright (C) 2009 Joseph Pecoraro | 3 * Copyright (C) 2009 Joseph Pecoraro |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
378 restoreScrollPositions: function() | 378 restoreScrollPositions: function() |
379 { | 379 { |
380 if (this._scrolledToBottom) | 380 if (this._scrolledToBottom) |
381 this._immediatelyScrollIntoView(); | 381 this._immediatelyScrollIntoView(); |
382 else | 382 else |
383 WebInspector.View.prototype.restoreScrollPositions.call(this); | 383 WebInspector.View.prototype.restoreScrollPositions.call(this); |
384 }, | 384 }, |
385 | 385 |
386 onResize: function() | 386 onResize: function() |
387 { | 387 { |
| 388 this._scheduleViewportRefresh(); |
388 this._prompt.hideSuggestBox(); | 389 this._prompt.hideSuggestBox(); |
389 this.restoreScrollPositions(); | 390 this.restoreScrollPositions(); |
390 }, | 391 }, |
391 | 392 |
392 _isScrollIntoViewScheduled: function() | 393 _isScrollIntoViewScheduled: function() |
393 { | 394 { |
394 return !!this._scrollIntoViewTimer; | 395 return !!this._scrollIntoViewTimer; |
395 }, | 396 }, |
396 | 397 |
397 _scheduleViewportRefresh: function() | 398 _scheduleViewportRefresh: function() |
(...skipping 787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1185 WebInspector.ConsoleView.ShowConsoleActionDelegate.prototype = { | 1186 WebInspector.ConsoleView.ShowConsoleActionDelegate.prototype = { |
1186 /** | 1187 /** |
1187 * @return {boolean} | 1188 * @return {boolean} |
1188 */ | 1189 */ |
1189 handleAction: function() | 1190 handleAction: function() |
1190 { | 1191 { |
1191 WebInspector.console.show(); | 1192 WebInspector.console.show(); |
1192 return true; | 1193 return true; |
1193 } | 1194 } |
1194 } | 1195 } |
OLD | NEW |