()
| 165 | } |
| 166 | |
| 167 | compute_view_padding() { |
| 168 | //This function sets the padding for the view through the constiables |
| 169 | //xPadding and y_padding which are view specific paddings in pixel |
| 170 | const xPadding = this.getBoxWidth() / 2.0 + 1; |
| 171 | if (xPadding !== this.xPadding) { |
| 172 | this.xPadding = xPadding; |
| 173 | this.trigger('mark_padding_updated'); |
| 174 | } |
| 175 | } |
| 176 | |
| 177 | private updateBoxWidth() { |
| 178 | this.compute_view_padding(); |
no test coverage detected