Skip to content

Commit

Permalink
v 1.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
nnajm committed Mar 8, 2015
1 parent 08f6690 commit 1026b41
Show file tree
Hide file tree
Showing 13 changed files with 17 additions and 91 deletions.
4 changes: 2 additions & 2 deletions demo/demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@

var config = {
dataSource: window.demo.data,
dataHeadersLocation: 'rows',
dataHeadersLocation: 'columns',
width: 1099,
height: 611,
theme: 'blue',
theme: 'bootstrap',
showToolbar: false,
grandTotal: {
rowsvisible: true,
Expand Down
17 changes: 3 additions & 14 deletions dist/orb.js
Original file line number Diff line number Diff line change
Expand Up @@ -2574,11 +2574,9 @@
thisnode.children[1].className = classes.table;
},
componentDidUpdate: function() {
//return;
this.synchronizeCompsWidths();
},
componentDidMount: function() {
//return;
var dataCellsContainerNode = this.refs.dataCellsContainer.getDOMNode();
var dataCellsTableNode = this.refs.dataCellsTable.getDOMNode();
var colHeadersContainerNode = this.refs.colHeadersContainer.getDOMNode();
Expand Down Expand Up @@ -3045,9 +3043,6 @@
currWidth = newWidthArray[arrayIndex];
}
}

// set table style width
//tbl.style.width = tblObject.size.width + 'px';
}
}

Expand Down Expand Up @@ -3077,8 +3072,6 @@

var rowstyle = {};



var istopmost = false;

cells = this.props.row.map(function(cell, index) {
Expand Down Expand Up @@ -3184,10 +3177,6 @@
node.__orb._paddingRight = _paddingLeft;
node.__orb._borderLeftWidth = this.props.leftmost ? 0 : _borderLeft;
node.__orb._borderRightWidth = 0;




}
},
componentDidMount: function() {
Expand Down Expand Up @@ -4999,7 +4988,7 @@
show: function(props) {
React.render(dialogFactory(props), overlay);
}
}
};
}
},
overlayElement: null,
Expand All @@ -5014,8 +5003,8 @@
var dialogElement = this.overlayElement.children[0];
var dialogBodyElement = dialogElement.children[0].children[1];

var screenWidth = Math.max(document.documentElement.clientWidth, window.innerWidth || 0)
var screenHeight = Math.max(document.documentElement.clientHeight, window.innerHeight || 0)
var screenWidth = Math.max(document.documentElement.clientWidth, window.innerWidth || 0);
var screenHeight = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
var maxHeight = 2 * screenHeight / 3;
maxHeight = maxHeight < 301 ? 301 : maxHeight;
var dWidth = dialogElement.offsetWidth + (dialogElement.offsetHeight > maxHeight ? 11 : 0);
Expand Down
2 changes: 1 addition & 1 deletion dist/orb.min.js.map

Large diffs are not rendered by default.

17 changes: 3 additions & 14 deletions dist/v1.0.8/orb-1.0.8.js
Original file line number Diff line number Diff line change
Expand Up @@ -2574,11 +2574,9 @@
thisnode.children[1].className = classes.table;
},
componentDidUpdate: function() {
//return;
this.synchronizeCompsWidths();
},
componentDidMount: function() {
//return;
var dataCellsContainerNode = this.refs.dataCellsContainer.getDOMNode();
var dataCellsTableNode = this.refs.dataCellsTable.getDOMNode();
var colHeadersContainerNode = this.refs.colHeadersContainer.getDOMNode();
Expand Down Expand Up @@ -3045,9 +3043,6 @@
currWidth = newWidthArray[arrayIndex];
}
}

// set table style width
//tbl.style.width = tblObject.size.width + 'px';
}
}

Expand Down Expand Up @@ -3077,8 +3072,6 @@

var rowstyle = {};



var istopmost = false;

cells = this.props.row.map(function(cell, index) {
Expand Down Expand Up @@ -3184,10 +3177,6 @@
node.__orb._paddingRight = _paddingLeft;
node.__orb._borderLeftWidth = this.props.leftmost ? 0 : _borderLeft;
node.__orb._borderRightWidth = 0;




}
},
componentDidMount: function() {
Expand Down Expand Up @@ -4999,7 +4988,7 @@
show: function(props) {
React.render(dialogFactory(props), overlay);
}
}
};
}
},
overlayElement: null,
Expand All @@ -5014,8 +5003,8 @@
var dialogElement = this.overlayElement.children[0];
var dialogBodyElement = dialogElement.children[0].children[1];

var screenWidth = Math.max(document.documentElement.clientWidth, window.innerWidth || 0)
var screenHeight = Math.max(document.documentElement.clientHeight, window.innerHeight || 0)
var screenWidth = Math.max(document.documentElement.clientWidth, window.innerWidth || 0);
var screenHeight = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
var maxHeight = 2 * screenHeight / 3;
maxHeight = maxHeight < 301 ? 301 : maxHeight;
var dWidth = dialogElement.offsetWidth + (dialogElement.offsetHeight > maxHeight ? 11 : 0);
Expand Down
2 changes: 1 addition & 1 deletion dist/v1.0.8/orb-1.0.8.min.js.map

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions src/css/orb.bootstrap.less
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@

&-over {
background-color: #f7f7f7;
/*border: 1px dotted #aaa;*/
}
}

Expand All @@ -43,8 +42,6 @@

&-over {
background-color: #aaa;
/*border: 1px dashed #aaa;
border-radius: 2px;*/
}
}
}
Expand Down
3 changes: 0 additions & 3 deletions src/css/orb.theme.less
Original file line number Diff line number Diff line change
Expand Up @@ -101,19 +101,16 @@
}

.drp-trgt {
/*border: 1px dashed @drop-target-color-border;*/
height: 27px;
&-over {
background-color: @drop-target-over-color-bg;
/*border: 1px dashed @drop-target-over-color-border;*/
}
}
.drp-indic {
height: 25px;

&-over {
background-color: @drop-indicator-over-color-border;
/*border-radius: 3px;*/
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/js/orb.ui.pgridwidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

'use strict';

/* global module, require, React */
/* global module, require, React, window */
/*jshint eqnull: true*/

var axe = require('./orb.axe');
Expand Down
6 changes: 3 additions & 3 deletions src/js/react/orb.react.Dialog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ var Dialog = module.exports.Dialog = react.createClass({
show: function(props) {
React.render(dialogFactory(props), overlay);
}
}
};
}
},
overlayElement: null,
Expand All @@ -36,8 +36,8 @@ var Dialog = module.exports.Dialog = react.createClass({
var dialogElement = this.overlayElement.children[0];
var dialogBodyElement = dialogElement.children[0].children[1];

var screenWidth = Math.max(document.documentElement.clientWidth, window.innerWidth || 0)
var screenHeight = Math.max(document.documentElement.clientHeight, window.innerHeight || 0)
var screenWidth = Math.max(document.documentElement.clientWidth, window.innerWidth || 0);
var screenHeight = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
var maxHeight = 2*screenHeight/3;
maxHeight = maxHeight < 301 ? 301 : maxHeight;
var dWidth = dialogElement.offsetWidth + (dialogElement.offsetHeight > maxHeight ? 11 : 0);
Expand Down
14 changes: 0 additions & 14 deletions src/js/react/orb.react.PivotCell.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,20 +63,6 @@ module.exports.PivotCell = react.createClass({
node.__orb._paddingRight = _paddingLeft;
node.__orb._borderLeftWidth = this.props.leftmost ? 0 : _borderLeft;
node.__orb._borderRightWidth = 0;

/*if(!this.props.cell.visible()) {
reactUtils.addClass(node, 'cell-hidden');
} else {
reactUtils.removeClass(node, 'cell-hidden');
}*/

/*if(node.__orb._borderLeftWidth != 0 && !this.props.leftmost) {
console.log('[' + cell.value + '][' + cell.template + '/' + cell.type + ']: ' +
'leftmost?=' + this.props.leftmost + ', ' +
'topmost?=' + this.props.topmost + ', ' +
'border-left=' + node.__orb._borderLeftWidth + ', '
);
}*/
}
},
componentDidMount: function() {
Expand Down
4 changes: 0 additions & 4 deletions src/js/react/orb.react.PivotRow.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ module.exports.PivotRow = react.createClass({

var rowstyle = {};

/*if(self.props.axetype === axe.Type.ROWS && cell0.visible && !cell0.visible()) {
rowstyle.display = 'none';
}*/

var istopmost = false;

cells = this.props.row.map(function(cell, index) {
Expand Down
5 changes: 0 additions & 5 deletions src/js/react/orb.react.PivotTable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,9 @@ module.exports.PivotTable = react.createClass({
thisnode.children[1].className = classes.table;
},
componentDidUpdate: function() {
//return;
this.synchronizeCompsWidths();
},
componentDidMount: function() {
//return;
var dataCellsContainerNode = this.refs.dataCellsContainer.getDOMNode();
var dataCellsTableNode = this.refs.dataCellsTable.getDOMNode();
var colHeadersContainerNode = this.refs.colHeadersContainer.getDOMNode();
Expand Down Expand Up @@ -466,9 +464,6 @@ function setTableWidths(tblObject, newWidthArray) {
currWidth = newWidthArray[arrayIndex];
}
}

// set table style width
//tbl.style.width = tblObject.size.width + 'px';
}
}

Expand Down
29 changes: 3 additions & 26 deletions src/js/react/orb.react.compiled.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,9 @@ module.exports.PivotTable = react.createClass({
thisnode.children[1].className = classes.table;
},
componentDidUpdate: function() {
//return;
this.synchronizeCompsWidths();
},
componentDidMount: function() {
//return;
var dataCellsContainerNode = this.refs.dataCellsContainer.getDOMNode();
var dataCellsTableNode = this.refs.dataCellsTable.getDOMNode();
var colHeadersContainerNode = this.refs.colHeadersContainer.getDOMNode();
Expand Down Expand Up @@ -569,9 +567,6 @@ function setTableWidths(tblObject, newWidthArray) {
currWidth = newWidthArray[arrayIndex];
}
}

// set table style width
//tbl.style.width = tblObject.size.width + 'px';
}
}

Expand Down Expand Up @@ -606,10 +601,6 @@ module.exports.PivotRow = react.createClass({

var rowstyle = {};

/*if(self.props.axetype === axe.Type.ROWS && cell0.visible && !cell0.visible()) {
rowstyle.display = 'none';
}*/

var istopmost = false;

cells = this.props.row.map(function(cell, index) {
Expand Down Expand Up @@ -720,20 +711,6 @@ module.exports.PivotCell = react.createClass({
node.__orb._paddingRight = _paddingLeft;
node.__orb._borderLeftWidth = this.props.leftmost ? 0 : _borderLeft;
node.__orb._borderRightWidth = 0;

/*if(!this.props.cell.visible()) {
reactUtils.addClass(node, 'cell-hidden');
} else {
reactUtils.removeClass(node, 'cell-hidden');
}*/

/*if(node.__orb._borderLeftWidth != 0 && !this.props.leftmost) {
console.log('[' + cell.value + '][' + cell.template + '/' + cell.type + ']: ' +
'leftmost?=' + this.props.leftmost + ', ' +
'topmost?=' + this.props.topmost + ', ' +
'border-left=' + node.__orb._borderLeftWidth + ', '
);
}*/
}
},
componentDidMount: function() {
Expand Down Expand Up @@ -2625,7 +2602,7 @@ var Dialog = module.exports.Dialog = react.createClass({
show: function(props) {
React.render(dialogFactory(props), overlay);
}
}
};
}
},
overlayElement: null,
Expand All @@ -2640,8 +2617,8 @@ var Dialog = module.exports.Dialog = react.createClass({
var dialogElement = this.overlayElement.children[0];
var dialogBodyElement = dialogElement.children[0].children[1];

var screenWidth = Math.max(document.documentElement.clientWidth, window.innerWidth || 0)
var screenHeight = Math.max(document.documentElement.clientHeight, window.innerHeight || 0)
var screenWidth = Math.max(document.documentElement.clientWidth, window.innerWidth || 0);
var screenHeight = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
var maxHeight = 2 * screenHeight / 3;
maxHeight = maxHeight < 301 ? 301 : maxHeight;
var dWidth = dialogElement.offsetWidth + (dialogElement.offsetHeight > maxHeight ? 11 : 0);
Expand Down

0 comments on commit 1026b41

Please sign in to comment.