Merge pull request #2841 from keymanapp/fix/ios/cherry/embedded-layer-group-style

fix(ios): corrects OSK height adjustment, banner display issues
This commit is contained in:
Joshua Horton 2020-03-18 12:07:14 +07:00 committed by GitHub
commit 7f8cab5ee2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 14 additions and 3 deletions

View file

@ -1,7 +1,10 @@
# Keyman for iPhone and iPad Version History
## 2020-03-09 13.0.102
## 2020-03-17 13.0.105 stable
* Fixes issues with keyboard banner display (#2841)
## 2020-03-09 13.0.102 stable
* Pre-emptively fixes issue with keyboard scaling for as-of-yet unreleased devices (#2704)
* Fixes in-app Info help link (#2774)
* Fixes issue with select keyboard rules causing loss of context when removing context up to a newline (#2776)

View file

@ -1,5 +1,9 @@
# KeymanWeb Version History
## 2020-03-18 13.0.105 stable
* Fixes issue in OSK layer resizing that affected iOS app (#2841)
* Fixes issue with text output to content-editable elements and design-mode iframes (#2839)
## 2020-03-13 13.0.104 stable
* Bug fix: further updates BuildVisualKeyboard (#2823)
* Bug fix: fixes word lookup for wordlist models for languages in the SMP Unicode planes (#2821)

View file

@ -352,10 +352,13 @@ namespace com.keyman.osk {
private manager: SuggestionManager;
static readonly TOUCHED_CLASS: string = 'kmw-suggest-touched';
static readonly BANNER_CLASS: string = 'kmw-suggest-banner';
constructor(height?: number) {
super(height || Banner.DEFAULT_HEIGHT);
this.getDiv().className = this.getDiv().className + ' ' + SuggestionBanner.BANNER_CLASS;
this.options = new Array();
for (var i=0; i<SuggestionBanner.SUGGESTION_LIMIT; i++) {
let d = new BannerSuggestion(i);

View file

@ -1915,7 +1915,7 @@ namespace com.keyman.osk {
var b: HTMLElement = _Box, bs=b.style;
bs.height=bs.maxHeight=oskHeight+'px';
b = this.kbdDiv;
b = this.kbdDiv.firstChild as HTMLElement;
bs=b.style;
// Sets the layer group to the correct height.
bs.height=bs.maxHeight=oskHeight+'px';

View file

@ -104,7 +104,8 @@
background-color: #cfd3d9;
}
.kmw-embedded .ios .kmw-banner-bar {
/*Only apply in embedded mode for the actual predictive banner, and no others.*/
.kmw-embedded .ios .kmw-banner-bar.kmw-suggest-banner {
top: 10px;
}