Merge branch 'colresize' into aris
This commit is contained in:
commit
ff5544d1c7
@ -103,8 +103,8 @@
|
||||
.show();
|
||||
} else { // vertical alignment
|
||||
var newtop = newn < this.colMov.n ?
|
||||
colPos.top - 20 : // 20 here is from col_pointer.png image height
|
||||
colPos.top + $(hoveredCol).outerHeight() - 20;
|
||||
colPos.top :
|
||||
colPos.top + $(hoveredCol).outerHeight();
|
||||
$(this.cPointer)
|
||||
.css('top', newtop)
|
||||
.show();
|
||||
@ -262,21 +262,21 @@
|
||||
g.cCpy = document.createElement('div'); // column copy, to store copy of dragged column header
|
||||
g.cPointer = document.createElement('div'); // column pointer, used when reordering column
|
||||
|
||||
// assign the table alignment
|
||||
g.alignment = $("#top_direction_dropdown").val();
|
||||
|
||||
// adjust g.cCpy
|
||||
g.cCpy.className = 'cCpy';
|
||||
$(g.cCpy).hide();
|
||||
|
||||
// adjust g.cPoint
|
||||
g.cPointer.className = 'cPointer';
|
||||
g.cPointer.className = g.alignment != 'vertical' ? 'cPointer' : 'cPointerVer';
|
||||
$(g.cPointer).hide();
|
||||
|
||||
// chain table and grid together
|
||||
t.grid = g;
|
||||
g.t = t;
|
||||
|
||||
// assign the table alignment
|
||||
g.alignment = $("#top_direction_dropdown").val();
|
||||
|
||||
// get first row data columns
|
||||
var $firstRowCols = g.alignment != 'vertical' ?
|
||||
$(t).find('th.draggable') :
|
||||
|
||||
@ -1885,7 +1885,7 @@ span.mysql-number {
|
||||
}
|
||||
|
||||
.cCpy {
|
||||
background: #333;
|
||||
background: #000;
|
||||
color: #FFF;
|
||||
margin: 0.1em;
|
||||
padding: 0.3em;
|
||||
@ -1898,8 +1898,17 @@ span.mysql-number {
|
||||
|
||||
.cPointer {
|
||||
background: url(<?php echo $_SESSION['PMA_Theme']->getImgPath(); ?>col_pointer.png);
|
||||
height: 20px; /* if the height changed, also change makegrid.js */
|
||||
height: 20px;
|
||||
margin-left: -5px; /* must be minus half of its width */
|
||||
position: absolute;
|
||||
width: 10px;
|
||||
}
|
||||
|
||||
.cPointerVer { /* cPointer with vertical display mode */
|
||||
background: url(<?php echo $_SESSION['PMA_Theme']->getImgPath(); ?>col_pointer_ver.png);
|
||||
height: 10px;
|
||||
margin-left: -5px;
|
||||
margin-top: -5px; /* must be minus half of its height */
|
||||
position: absolute;
|
||||
width: 20px;
|
||||
}
|
||||
|
||||
BIN
themes/original/img/col_pointer_ver.png
Normal file
BIN
themes/original/img/col_pointer_ver.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 223 B |
@ -2238,8 +2238,17 @@ span.mysql-number {
|
||||
|
||||
.cPointer {
|
||||
background: url(./themes/pmahomme/img/col_pointer.png);
|
||||
height: 20px; /* if the height changed, also change makegrid.js */
|
||||
height: 20px;
|
||||
margin-left: -5px; /* must be minus half of its width */
|
||||
position: absolute;
|
||||
width: 10px;
|
||||
}
|
||||
|
||||
.cPointerVer { /* cPointer with vertical display mode */
|
||||
background: url(./themes/pmahomme/img/col_pointer_ver.png);
|
||||
height: 10px;
|
||||
margin-left: -5px;
|
||||
margin-top: -5px; /* must be minus half of its height */
|
||||
position: absolute;
|
||||
width: 20px;
|
||||
}
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 216 B After Width: | Height: | Size: 231 B |
BIN
themes/pmahomme/img/col_pointer_ver.png
Normal file
BIN
themes/pmahomme/img/col_pointer_ver.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 233 B |
Loading…
Reference in New Issue
Block a user