Skip to content
GitLab
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    Projects Groups Snippets
  • Sign up now
  • Login
  • Sign in / Register
  • Lazarus Lazarus
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 2,112
    • Issues 2,112
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 14
    • Merge requests 14
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • FPC
  • LazarusLazarus
  • LazarusLazarus
  • Issues
  • #38838
Closed
Open
Issue created May 01, 2021 by FPC Admin account@fpc_adminOwner

ScrollInView for TscrollingWinControl or scrollbox does not calculate stacked controls.

Original Reporter info from Mantis: jamie @jamie
  • Reporter name: jamie philbrook

Description:

if you place a panel on a scrollbox and place some controls inside that panel, the parented controls of the panel uses its offset of the Panel for the calculations to scroll instead of cycling backwards to the calling scrolling window control.

In short the end results is you don't see the parented controls of the panel scroll in view properly because the bounds of the panel is not being added to the offset of the child controls.

Please refer to this thread where I took the existing ScrollInView Code and modified it for the purpose of a test..
https://forum.lazarus.freepascal.org/index.php/topic,54354.0.html

Steps to reproduce:

start with a scrollbox

drop a panel inside it but make sure the top is not at the top of the scrollbox

place a button inside the panel

shrink the scrollbox so the button is hidden from view..

execute the ScrollBox.ScrollInView and watch what happens.

Mantis conversion info:

  • Mantis ID: 38838
  • Build: all of them, Trunk too.
  • Version: 2.0.12
  • Fixed in revision: 65078 (#f1924225)
Assignee
Assign to
Time tracking