Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BudgetMaster
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Robert Goldmann
BudgetMaster
Commits
31866cf0
Commit
31866cf0
authored
7 years ago
by
Robert Goldmann
Browse files
Options
Downloads
Patches
Plain Diff
cleanup
parent
48a29da1
No related branches found
No related tags found
1 merge request
!160
merge v1_4_0 into master
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/de/deadlocker8/budgetmaster/logic/charts/CategoriesChart.java
+1
-20
1 addition, 20 deletions
...eadlocker8/budgetmaster/logic/charts/CategoriesChart.java
with
1 addition
and
20 deletions
src/de/deadlocker8/budgetmaster/logic/charts/CategoriesChart.java
+
1
−
20
View file @
31866cf0
...
...
@@ -281,25 +281,6 @@ public class CategoriesChart extends VBox implements ChartExportable
return
total
;
}
private
VBox
prepareExportChart
()
{
//TODO won't work because vbox is not added to stage at this point
VBox
root
=
new
VBox
();
root
.
setStyle
(
"-fx-background-color: transparent;"
);
root
.
setPadding
(
new
Insets
(
25
));
root
.
getChildren
().
add
(
generate
(
titleIncomes
,
true
));
root
.
getChildren
().
add
(
generate
(
titlePayments
,
false
));
Region
spacer
=
new
Region
();
root
.
getChildren
().
add
(
spacer
);
VBox
.
setVgrow
(
spacer
,
Priority
.
ALWAYS
);
root
.
getChildren
().
add
(
generateFullLegend
());
return
root
;
}
@Override
public
WritableImage
export
(
int
width
,
int
height
)
{
...
...
@@ -335,7 +316,7 @@ public class CategoriesChart extends VBox implements ChartExportable
@Override
public
double
getSuggestedWidth
()
{
return
prepareExportChart
().
getWidth
()
+
50
;
return
getWidth
()
+
50
;
}
@Override
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment