Skip to content

[Enhancement] Removed mLabelRotatedWidth/Height variables from XAxis model.#4032

Open
RobertZagorski wants to merge 1 commit intoPhilJay:masterfrom
RobertZagorski:feature/remove-redundant-label-rotated-variables
Open

[Enhancement] Removed mLabelRotatedWidth/Height variables from XAxis model.#4032
RobertZagorski wants to merge 1 commit intoPhilJay:masterfrom
RobertZagorski:feature/remove-redundant-label-rotated-variables

Conversation

@RobertZagorski
Copy link
Copy Markdown
Contributor

@RobertZagorski RobertZagorski commented May 14, 2018

PR Checklist:

  • I have tested this extensively and it does not break any existing behavior.
  • I have added/updated examples and tests for any new behavior.
    Added a case for one of example charts.

PR Description

There are 2 variables in XAxis model:

  • mLabelRotatedWidth
  • mLabelRotatedHeight

Their existence is unjustified. Those 2 variables were used only if mLabelRotationAngle was different than 0. In such situation mLabelWidth/Height became unused. This PR was removes this unnecessary overhead - merges those two cases into one - making use of mLabelWidth/Height variables in XAxis.

Those 2 variables were used only if mLabelRotationAngle was different than 0.
In such situation mLabelWidth/Height became unused.
This was removes this unnecessary overhead - merges those two cases
into one making use of mLabelWidth/Height variables in XAxis.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant