Skip to content

Commit

Permalink
fixed an issue with the top column-width-bar layout
Browse files Browse the repository at this point in the history
  • Loading branch information
IARI committed Jun 13, 2020
1 parent 831d7ef commit dc37872
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ class DocumentTab : AppTab("Document", MaterialDesignIcon.LABEL_OUTLINE.view) {
val data: LabelsDocumentDataModel by inject()
val tgroupH = ToggleGroup()
val tgroupV = ToggleGroup()
private val paddingLeftBinding = data.controlLabelV.doubleBinding {
log.info("Doc controlLabelV: $it")
if (it ?: true) .0 else Styles.labelsLeftBarWidth
}


val selectedLabels = observableListOf<LabelContent>()

Expand Down Expand Up @@ -205,12 +210,7 @@ class DocumentTab : AppTab("Document", MaterialDesignIcon.LABEL_OUTLINE.view) {
top {
listview(data.columns) {
addClass(Styles.gridLineList)
paddingLeftProperty.bind(
data.controlLabelV.doubleBinding {
if (it ?: false) .0 else Styles.labelsLeftBarWidth
}
)
paddingLeft = Styles.labelsLeftBarWidth
paddingLeftProperty.bind(paddingLeftBinding)
orientation = Orientation.HORIZONTAL
prefHeight = Styles.labelsTopRowHeight
cellFragment(GridLineFragment::class)
Expand Down

0 comments on commit dc37872

Please sign in to comment.