Jump to content
Yaroslav Brovin
Message added by Yaroslav Brovin,

Please be aware that these comments were copied here from another source and that the date and time shown for each comment may not be accurate.

  • Status: Fixed
  • Priority: Normal
  • Resolution: Fixed
  • Platform: Android
  • Affects version: 1.15.5.0

When I embed a frame inside a form, the pull to refresh of the collectionView activates during scrolling, and if I just show the frame, the error disappears... I'm using a sample project to report this issue, thus using conventional code to embed the frame

 

procedure TFormMain.ShowFrame(Sender: TObject);
var
  FrameNumber: Integer;
  FrameClass: TfgFormClass;
begin
  TfgAssert.IsClass(Sender, TfgButton);

  FrameNumber := TfgButton(Sender).Tag;

  // Remove previous active frame
  if FActiveFrame <> nil then
  begin
    FActiveFrame.Parent := nil;
    FreeAndNil(FActiveFrame);
  end;

  case FrameNumber of
    1: FrameClass := TFrame1;
  else
    raise EfgAssertError.CreateFmt(SUnknownValue, ['FrameNumber']);
  end;

  // Embed new form as control into lContent layout^
  FActiveFrame := FrameClass.Create(nil);
  FActiveFrame.BeginUpdate;
  try
    FActiveFrame.PositionMode := TfgPositionMode.Relative;
    FActiveFrame.Alignment.FlexGrow := 1;
    FActiveFrame.FullScreen := False;
    FActiveFrame.Parent := lContent;
    FActiveFrame.Show;
  finally
    FActiveFrame.EndUpdate;
  end;
end;

In button 2, I just call the show, and look at the difference, remembering that the pull to refresh is off, I created the collectionView again.

procedure TFormMain.btnShowFrame2Tap(Sender: TObject);
begin
  frame1 := Tframe1.Create(nil);
  frame1.Show;
end;

 

Obs: button 1 embeds the screen and button 2 calls the frame alone.

 

image.png.06f9a7e89d7cee6a89bac9a19445f79a.png


Fix version: 1.16.0.0

User Feedback

Recommended Comments

Alex O

Members

Кстати да, заметил такое же и при встраивании в форму формы, тоже срабатывает

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.