Jump to content
View in the app

A better way to browse. Learn more.

FGX Native

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
  • Status: Fixed
  • Priority: Critical
  • Resolution: Fixed
  • Platform: iOS
  • Affects version 1.11.2.0
  • Fix version: 1.11.3.0

Добрый день!

При скрытии клавиатуры не отрабатывает событие  OnVirtualKeyboardFrameChange

Демо во вложении

WhatsApp Image 2021-07-05 at 08.46.55.jpeg

WhatsApp Image 2021-07-05 at 08.46.58.jpeg

WhatsApp Image 2021-07-05 at 08.47.00.jpeg

TListDemo.zip

User Feedback

Recommended Comments

  • Administrators

Описанное поведение не является ошибкой, а скорее особенностью работы iOS.  Вы используете следующий код по сдвигу содержимого формы при появлении клавиатуры:

procedure TFormMain.fgFormVirtualKeyboardFrameChanged(Sender: TObject;
  const AVKFrame: TRectF);
begin
  fgLayout2.Height := AVKFrame.Height;
end;

Когда клавиатура скрывается в Android, то она принимает нулевую высоту и сдвигается в конце. А в iOS, высота не меняется, а происходит только сдвиг. Поэтому создается впечатление, что событие работает не корректно.

Приведенный выше код, правильнее будет написать так:

procedure TFormMain.fgFormVirtualKeyboardFrameChanged(Sender: TObject;
  const AVKFrame: TRectF);
begin
  fgLayout2.Height := Height - AVKFrame.Top;
end;

Не смотря на это, мне кажется, что лучше сбрасывать в iOS реализации высоту клавиатуры в 0, как в Android. Чтобы обработка этого события была единообразной на обоих платформах.

  • Administrators

Изменено Резолюция на Fixed

Изменено Версия с исправлением на 1.11.3.0

  • Administrators

В 1.11.3.0 теперь при скрытии клавиатуры в iOS принудительно сбрасывается высота виртуальной клавиатуры в 0.

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.