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: Closed
  • Priority: Critical
  • Resolution: Test case error
  • Platform: iOS
  • Affects version 1.18.5.0

Добрый день!

При вызове TfgVerticalScrollBox.DeleteControls компонентом, который расположен на TfgVerticalScrollBox, приложение падает.

Ранее ошибка не возникала.

На Android работает без ошибок.

Демо, воспроизводящее проблему, представлено во вложении.

VerticalScrollboxDeleteControlsDemo.zip

User Feedback

Recommended Comments

  • Administrators

Здравствуйте.

В самом демо есть логическая ошибка - вы удаляете кнопку внутри ее обработчика, что и приводит к исключению. 

Чтобы избежать проблемы, вызывайте код обновления контента (и соответственно удаление самой кнопки) асинхронно.

procedure TFormMain.OnButtonTap(Sender: TObject);
begin
  TThread.ForceQueue(TThread.Current,
    procedure
    begin
      VerticalScrollBox1.ScrollTop(false);

      if VerticalScrollBox1.ControlsCount>0 then
      VerticalScrollBox1.DeleteControls;

      DisplayContent;
    end);
end;

 

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.