Lines Matching +defs:top +defs:left
6972 gantt.attachEvent("onGanttScroll", utils.bind(function (left, top) {
7206 this.config.marker.style.left = source.pos.x + "px";
7207 this.config.marker.style.top = source.pos.y + "px";
8648 var top = ajax.xmltop("data", xml.xmlDoc); // fix incorrect content type in IE
8649 if (!top) {
8652 var atag = ajax.xpath("//data/action", top);
11634 var top = this.getTaskTop(task.id);
11638 left: 0,
11639 top: top,
11703 scrollTo: function(left, top){
11717 if (horizontal && left*1 == left){
11718 horizontal.scroll(left);
11720 if(vertical && top*1 == top){
11721 vertical.scroll(top);
11744 var left = Math.max(pos.left - this.config.task_scroll_offset, 0);
11747 var top;
11749 top = pos.top;
11751 top = pos.top - (dataHeight - this.config.row_height)/2;
11754 this.scrollTo(left, top);
12734 var html = "<div style='height:" + (sns.height || 30) + "px;padding-top:0px;font-size:inherit;' class='gantt_section_time'>" + time + " " + duration + "</div>";
13193 var html = "<div style='height:" + (sns.height || 30) + "px;padding-top:0px;font-size:inherit;text-align:center;' class='gantt_section_time'>";
13482 box.style.top = Math.round(scroll_top + Math.max((view_height - box.offsetHeight) / 2, 0)) + "px";
13484 box.style.top = Math.round(Math.max(((view_height - box.offsetHeight) / 2), 0) + 9) + "px"; // +9 for compatibility with auto tests
13488 box.style.left = Math.round(scroll_left + (document.body.offsetWidth - box.offsetWidth) / 2) + "px";
13490 box.style.left = Math.round((document.body.offsetWidth - box.offsetWidth) / 2) + "px";
13823 lb.style.top = gantt._lb_start[1] + now[1] - gantt._dnd_start_lb[1] + "px";
13824 lb.style.left = gantt._lb_start[0] + now[0] - gantt._dnd_start_lb[0] + "px";
13829 gantt._lb_start = [parseInt(lb.style.left, 10), parseInt(lb.style.top, 10)];
14837 if (config.position == "top")
14838 box.style.top = "-3px";
14840 box.style.top = y + 'px';
14841 box.style.left = x + 'px';
14941 messageBox.position = "top";
15325 function scroll(left, top) {
15331 if (left) {
15332 scrollLeft = scrollState.x + left;
15337 if (top) {
15338 scrollTop = scrollState.y + top;
15976 'left:' + sizes.left + 'px',
15980 'top:' + sizes.top + 'px'
16068 var top = (1 - (level*1||0))*100;
16069 var left = timeline.posFromDate(start);
16073 element.style.top = top + '%';
16074 element.style.left = left + "px";
16075 element.style.width = (right - left + 1) + "px";
16078 function renderConnection(prevLevel, nextLevel, left){
16083 var top = 1 - Math.max(prevLevel, nextLevel);
16087 element.style.top = top*100 + "%";
16089 element.style.left = left + "px";
16096 var cellLeftCoord = scale.left[columnIndex] - width;
16097 var cellRightCoord = scale.left[columnIndex] + width;
16163 capacityElement.style.top = (sizes.top + 1) + "px";
16165 capacityElement.style.left = 0;
16179 'left:' + sizes.left + 'px',
16183 'top:' + (sizes.top + 1) + 'px'
17444 var top = grid.getItemTop(itemId);
17447 var left = 0,
17455 left += cols[i].width;
17458 top: top,
17459 left: left,
17486 "top:" + pos.top + "px",
17487 "left:" + pos.left + "px",
18912 scrollTo: function (left, top) {
18921 if (left * 1 == left) {
18922 this.$config.scrollLeft = this.$state.scrollLeft = this.$grid.scrollLeft = left;
18927 if (top * 1 == top) {
18928 this.$config.scrollTop = this.$state.scrollTop = this.$grid_data.scrollTop = top;
19670 dd.marker.style.left = pos.x + 10 + "px";
19671 dd.marker.style.top = pos.y + "px";
20039 root.marker.style.left = markerPos.x + 9 + "px";
20040 root.marker.style.top = markerPos.y + "px";
20068 markerLine.style.left = linePos.x + "px";
20071 markerLine.style.top = (linePos.y - 2) + "px";
20082 markerFolder.style.top = pos.y + "px";
20083 markerFolder.style.left = pos.x + "px";
20466 Cell.prototype.scrollTo = function(left, top){
20468 if (left*1 == left){
20469 this.$view.scrollLeft = left;
20471 if(top*1 == top){
20472 this.$view.scrollTop = top;
20625 top: 0,
20628 left: 0,
20633 if(this._currentBorders[this._borders.left]){
20634 borders.left = 1;
20643 if(this._currentBorders[this._borders.top]){
20644 borders.top = 1;
20675 "left":"gantt_layout_cell_border_left",
20677 "top":"gantt_layout_cell_border_top",
21360 this._borders.left,
21361 this._borders.top,
21673 ScrollbarCell.prototype.scrollHorizontally = function(left){
21677 this.$scroll_hor.scrollLeft = left;
21678 this.$config.codeScrollLeft = left;
21679 left = this.$scroll_hor.scrollLeft;
21684 views[i].scrollTo(left, undefined);
21688 this.$config.scrollPosition = left;
21689 this.callEvent("onScroll", [oldSize, left, this.$config.scroll]);
21692 ScrollbarCell.prototype.scrollVertically = function(top){
21696 this.$scroll_ver.scrollTop = top;
21697 top = this.$scroll_ver.scrollTop;
21703 views[i].scrollTo(undefined, top);
21707 this.$config.scrollPosition = top;
21708 this.callEvent("onScroll", [oldSize, top, this.$config.scroll]);
21727 var left = this.$scroll_hor.scrollLeft;
21729 this.scrollHorizontally(left);
21913 scrollbar.style.top = (offset-1) + "px";
21914 domHelpers.addClassName(scrollbar, this.$parent._borders.top);
21922 scrollbar.style.top = "auto";
21923 domHelpers.removeClassName(scrollbar, this.$parent._borders.top);
21937 var top = this.$scroll_ver.scrollTop;
21939 if(top == prev) return;
21941 this.scrollVertically(top);
22001 var left = oldLeft+dir*30;
22002 this.scrollHorizontally(left);
22003 this.$scroll_hor.scrollLeft = left;
22023 var top = this.$scroll_ver.scrollTop+dir*30;
22026 // (this.$gantt._cached_scroll_pos && ((this.$gantt._cached_scroll_pos.y == top) || (this.$gantt._cached_scroll_pos.y <= 0 && top <= 0)))) return true;
22029 this.scrollVertically(top);
22030 this.$scroll_ver.scrollTop = top;
22110 ViewCell.prototype.scrollTo = function(left, top){
22113 this.$content.scrollTo(left, top);
22115 _super.prototype.scrollTo.call(this, left, top);
22799 //insert on top or below the tasks
22986 var top = point.y;
22987 var left = point.x;
22994 top -= (size - line_width) / 2;
22995 left -= size;
22997 case drawer.dirs.left:
22998 top -= (size - line_width) / 2;
23001 left -= size;
23004 top += size * 2;
23005 left -= size;
23011 "top:" + top + "px",
23012 "left:" + left + 'px'].join(';');
23021 dirs: {"left": 'left', "right": 'right', "up": 'up', "down": 'down'},
23055 case this.dirs.left:
23057 top: y,
23060 left: v.x - v.size - wrapper_size / 2,
23066 top: y,
23069 left: v.x - wrapper_size / 2,
23075 top: y - v.size,
23078 left: v.x - wrapper_size / 2,
23084 top: y /*- wrapper_size/2*/,
23087 left: v.x - wrapper_size / 2,
23104 case this.dirs.left:
23133 "top:" + pos.top + "px",
23134 "left:" + pos.left + "px",
23145 "margin-top:" + innerPos.marginTop + "px",
23146 "margin-left:" + innerPos.marginLeft + "px"
23161 if (direction == this.dirs.left || direction == this.dirs.right) {
23171 direction = this.dirs.left;
23207 case (dir.left):
23241 this.point_to(dir.left, shiftX);
23277 this.point_to(dir.left, shiftX);
23281 this.point_to(dir.left, shiftX);
23293 this.point_to(dir.left, shiftX);
23339 x: from_start ? from.left : (from.left + from.width),
23340 e_x: to_start ? to.left : (to.left + to.width),
23341 y: from.top,
23342 e_y: to.top
23353 pos.left -= milestoneWidth / 2;
23653 pos.left -= Math.round(height / 2);
23686 "left:" + pos.left + "px",
23687 "top:" + (padd + pos.top) + 'px',
23764 function _get_link_crossing_css(left, task) {
23765 var cond = _get_conditions(left);
23826 drag.style.left = markerPos + 'px';
23991 var lastCellIndex = scale.left.length - 1;
23992 for(var i = 0; i < scale.left.length; i++){
23993 var left = scale.left[i];
23994 if(left < viewportLeft){
23997 if(left > viewPortRight){
24086 var cellLeftCoord = scale.left[columnIndex] - width;
24087 var cellRightCoord = scale.left[columnIndex] + width;
24120 cell.style.left = scale.left[columnIndex] + "px";
24176 row.style.top = view.getItemTop(item.id) + "px";
24308 el.style.left = "0px";
24309 el.style.top = view.getItemTop(item.id) + "px";
24363 element.style.top = (sizes.top + padding) + "px";
24397 var left = Math.min(startCoord, endCoord) - padding;
24401 top: view.getItemTop(item.id),
24403 left: left,
24404 width: right - left
24421 top: view.getItemTop(item.id),
24423 left: 0,
24439 top: view.getItemTop(item.id),
24441 left: 0,
24475 var left = Math.min(sourceBox.left, targetBox.left) - padding;
24476 var right = Math.max(sourceBox.left + sourceBox.width, targetBox.left + targetBox.width) + padding;
24477 var top = Math.min(sourceBox.top, targetBox.top) - padding;
24478 var bottom = Math.max(sourceBox.top + sourceBox.height, targetBox.top + targetBox.height) + padding;
24481 top: top,
24482 height: bottom - top,
24483 left: left,
24484 width: right - left
24503 if(box.left > viewport.x_end || box.left + box.width < viewport.x){
24507 if(box.top > viewport.y_end || box.top + box.height < viewport.y){
24531 * Get top coordinate by row index (order)
24539 * Get top coordinate by item id
24688 x: pos.left,
24689 y: pos.top,
24875 marker.style.left = pos.x + "px";
24876 marker.style.top = pos.y + "px";
24914 top = Math.round(s_y),
24915 left = Math.round(s_x);
24936 top -= shiftTop;
24939 left -= shiftLeft;
24940 top -= shiftTop;
24943 left -= shiftLeft;
24951 style.push("top:" + top + "px");
24952 style.push("left:" + left + "px");
25372 config.left.push((config.width[i - 1] || 0) + (config.left[i - 1] || 0));
25444 left: [],
25515 var left = 0, right = cfg.width.length - 1;
25517 if (+dates[0] < +cfg.min_date && left != right) {
25612 drag_from_start : this.drag ? this.drag.left : undefined
25653 left: null
25660 if (drag.left) {
25674 if (drag.left)
25947 if (drag.left) {
25965 if (drag.left) {
26031 var drag = {mode: null, left: null};
26043 drag.left = true;
26045 drag.left = false;
26307 scrollTo: function(left, top){
26315 if(top*1 === top){
26316 this.$config.scrollTop = top;
26320 if (left*1 === left){
26321 this.$task.scrollLeft = left;
26620 startIndex = _findBinary(config.left, fromPos);
26621 endIndex = _findBinary(config.left, toPos) + 1;
26637 left = config.left[i],
26643 var position = globalConfig.smart_scales ? ("position:absolute;left:" + left + "px") : "";
26667 var ind = _findBinary(this._tasks.left, x);
26668 var summ = this._tasks.left[ind];
26707 var pos = this._tasks.left[Math.min(wholeCells, this._tasks.width.length - 1)];
26739 // iterate columns to the left
26814 left: xLeft,
26815 top: y,
28310 var left = duration - added;
28311 var hours = Math.floor(left / 60);
29171 var top=0, left=0, right=0, bottom=0;
29183 top = box.top + scrollTop - clientTop;
29184 left = box.left + scrollLeft - clientLeft;
29190 top = top + parseInt(elem.offsetTop,10);
29191 left = left + parseInt(elem.offsetLeft,10);
29195 right = document.body.offsetWidth - elem.offsetWidth - left;
29196 bottom = document.body.offsetHeight - elem.offsetHeight - top;
29198 return { y: Math.round(top), x: Math.round(left), width:elem.offsetWidth, height:elem.offsetHeight, right: Math.round(right), bottom: Math.round(bottom) };
29265 div.style.cssText="visibility:hidden;position:absolute;left:-1000px;width:100px;padding:0px;margin:0px;height:110px;min-height:100px;overflow-y:scroll;";
29390 var left = (ind === 0) || (!_trimString(css.charAt(ind - 1)));
29393 if (left && right)