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
  • #35010
Closed
Open
Issue created Feb 04, 2019 by FPC Admin account@fpc_adminOwner

TAChart: tiny visual improvement

Original Reporter info from Mantis: Marcin Wiazowski
  • Reporter name:

Description:

It's not a big thing, just a small improvement. Especially when chart is not the only form's component (so it's relatively small), resizing the form may make the chart so small, that its clipping rect becomes inverted, i.e. (Top > Bottom) and/or (Left > Right). This causes ugly visual effects - please take a look at the attached animation.

Changes in the attached patch are not very complicated:

- in TChart.PrepareAxis() the clipping rect is set - so it should be finally corrected if needed; thanks to that, the back wall drawing machinery doesn't receive an invalid rect,

- in TChartAxisList.Prepare(), an empty/invalid clipping rect should be detected, so axes should be initialized with empty rects (without this, some calculations are performed on this empty/invalid clipping rect, so axes' titles are either repositioned strangely, or some of them are still drawn),

- TChartAxis.Draw() and TChartAxis.DrawTitle() should detect empty/invalid rect and just exit.

Regards

Mantis conversion info:

  • Mantis ID: 35010
  • Build: 60335
  • Version: 2.1 (SVN)
  • Fixed in revision: 60336 (#3d14e655)
  • Target version: 2.0.2
Assignee
Assign to
Time tracking