Revise Android softkeyboard support

- Remove keyboardHeight from constructor
 - Latest agg
This commit is contained in:
John Lewin 2015-10-13 10:17:11 -07:00
parent d720abac42
commit 1380ea0c43
11 changed files with 11 additions and 11 deletions

View file

@ -329,7 +329,7 @@ namespace MatterHackers.MatterControl.ContactForm
contactFormWidget = new ContactFormWidget(subject, bodyText);
#if __ANDROID__
this.AddChild(new SoftKeyboardContentOffset(contactFormWidget, SoftKeyboardContentOffset.AndroidKeyboardOffset));
this.AddChild(new SoftKeyboardContentOffset(contactFormWidget));
#else
AddChild(contactFormWidget);
#endif

View file

@ -52,7 +52,7 @@ namespace MatterHackers.MatterControl.Plugins.BrailleBuilder
ActiveSliceSettings.Instance.BedShape);
#if __ANDROID__
this.AddChild(new SoftKeyboardContentOffset(part3DView, SoftKeyboardContentOffset.AndroidKeyboardOffset));
this.AddChild(new SoftKeyboardContentOffset(part3DView));
#else
this.AddChild(part3DView);
#endif

View file

@ -516,7 +516,7 @@ namespace MatterHackers.MatterControl.ConfigurationPage
LocalizedString.ResetTranslationMap();
ApplicationController.Instance.MainView = new CompactApplicationView();
app.RemoveAllChildren();
app.AddChild(new SoftKeyboardContentOffset(ApplicationController.Instance.MainView, SoftKeyboardContentOffset.AndroidKeyboardOffset));
app.AddChild(new SoftKeyboardContentOffset(ApplicationController.Instance.MainView));
app.AnchorAll();
#endif
});

View file

@ -185,7 +185,7 @@ namespace MatterHackers.MatterControl.EeProm
#if __ANDROID__
TerminalWidget terminalWidget = new TerminalWidget(true);
this.AddChild(new SoftKeyboardContentOffset(mainContainer, SoftKeyboardContentOffset.AndroidKeyboardOffset));
this.AddChild(new SoftKeyboardContentOffset(mainContainer));
//mainContainer.Closed += (sender, e) => { Close(); };
#else
AddChild(mainContainer);

View file

@ -109,7 +109,7 @@ namespace MatterHackers.MatterControl.EeProm
#if __ANDROID__
TerminalWidget terminalWidget = new TerminalWidget(true);
this.AddChild(new SoftKeyboardContentOffset(topToBottom, SoftKeyboardContentOffset.AndroidKeyboardOffset));
this.AddChild(new SoftKeyboardContentOffset(topToBottom));
//topToBottom.Closed += (sender, e) => { Close(); };
#else
this.AddChild(topToBottom);

View file

@ -57,7 +57,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
#if __ANDROID__
TerminalWidget terminalWidget = new TerminalWidget(true);
this.AddChild(new SoftKeyboardContentOffset(partPreviewWidget, SoftKeyboardContentOffset.AndroidKeyboardOffset));
this.AddChild(new SoftKeyboardContentOffset(partPreviewWidget));
//mainContainer.Closed += (sender, e) => { Close(); };
#else
this.AddChild(partPreviewWidget);

View file

@ -135,7 +135,7 @@ namespace MatterHackers.MatterControl
topToBottom.AddChild(buttonRow);
#if __ANDROID__
this.AddChild(new SoftKeyboardContentOffset(topToBottom, SoftKeyboardContentOffset.AndroidKeyboardOffset));
this.AddChild(new SoftKeyboardContentOffset(topToBottom));
#else
this.AddChild(topToBottom);
#endif

View file

@ -219,7 +219,7 @@ namespace MatterHackers.MatterControl.PrinterControls.PrinterConnections
mainContainer.AddChild(buttonContainer);
#if __ANDROID__
this.AddChild(new SoftKeyboardContentOffset(mainContainer, SoftKeyboardContentOffset.AndroidKeyboardOffset));
this.AddChild(new SoftKeyboardContentOffset(mainContainer));
#else
this.AddChild(mainContainer);
#endif

View file

@ -98,7 +98,7 @@ namespace MatterHackers.MatterControl
AlwaysOnTopOfMain = true;
#if __ANDROID__
TerminalWidget terminalWidget = new TerminalWidget(true);
this.AddChild(new SoftKeyboardContentOffset(terminalWidget, SoftKeyboardContentOffset.AndroidKeyboardOffset));
this.AddChild(new SoftKeyboardContentOffset(terminalWidget));
terminalWidget.Closed += (sender, e) => { Close(); };
#else
this.AddChild(new TerminalWidget(true));

@ -1 +1 @@
Subproject commit 8ddc271e27290492eff02d0bc7e30b1768c81459
Subproject commit a0a0f876162678299b6b1d8aecd1c777694ff58a

View file

@ -52,7 +52,7 @@ namespace MatterHackers.MatterControl.Plugins.TextCreator
ActiveSliceSettings.Instance.BedShape);
#if __ANDROID__
this.AddChild(new SoftKeyboardContentOffset(part3DView, SoftKeyboardContentOffset.AndroidKeyboardOffset));
this.AddChild(new SoftKeyboardContentOffset(part3DView));
#else
this.AddChild(part3DView);
#endif