mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-30 23:43:37 +00:00
Make sure the text field is visible before focus so the browser
will not scroll without the NSScrollView knowing about it Issue #1675 and maybe a little of issue #1301 This fix will not work without pull request #1678 - Fixed scrollRectToVisible in CPView
This commit is contained in:
@@ -513,6 +513,9 @@ CPTextFieldStatePlaceholder = CPThemeState("placeholder");
|
||||
*/
|
||||
- (void)_becomeFirstKeyResponder
|
||||
{
|
||||
// Make sure the text field is visible so the browser will not scroll without the NSScrollView knowing about it.
|
||||
[self scrollRectToVisible:[self bounds]];
|
||||
|
||||
[self setThemeState:CPThemeStateEditing];
|
||||
|
||||
[self _updatePlaceholderState];
|
||||
|
||||
Reference in New Issue
Block a user