Skip to content

Commit

Permalink
IBX-1703: Added default width to content tree (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
dew326 authored Dec 16, 2021
1 parent 21bb0f9 commit 40e08b1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const CLASS_IS_TREE_RESIZING = 'ibexa-is-tree-resizing';
const MIN_CONTAINER_WIDTH = 200;
const COLLAPSED_WIDTH = 96;
const EXPANDED_WIDTH = 320;
const DEFAULT_CONTAINER_WIDTH = 300;

export default class ContentTree extends Component {
constructor(props) {
Expand All @@ -26,7 +27,7 @@ export default class ContentTree extends Component {

this.state = {
resizeStartPositionX: 0,
containerWidth: this.getConfig('width'),
containerWidth: this.getConfig('width') || DEFAULT_CONTAINER_WIDTH,
resizedContainerWidth: 0,
isResizing: false,
};
Expand Down

0 comments on commit 40e08b1

Please sign in to comment.