mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-01 02:49:28 +01:00
* All Applications: Fix problem with resizing listviews' columns in FireFox (FF) and Internet Explorer (IE).
- Fix column being resized by clicking on selectbox (dropdown triangle handle) in IE and FF - Fix resizing column attempt to select texts instead of resizing column in FF
This commit is contained in:
parent
828274fea9
commit
b8ba550e47
@ -41,9 +41,17 @@
|
|||||||
if (overlay == null || helper == null)
|
if (overlay == null || helper == null)
|
||||||
{
|
{
|
||||||
// Prevent text selection
|
// Prevent text selection
|
||||||
_elem[0].onselectstart = function() {
|
// FireFox handles highlight prevention (text selection) different than other browsers
|
||||||
return false;
|
if (typeof _elem[0].style.MozUserSelect !="undefined")
|
||||||
};
|
{
|
||||||
|
_elem[0].style.MozUserSelect = "none";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
_elem[0].onselectstart = function() {
|
||||||
|
return false;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
// Reset the "didResize" flag
|
// Reset the "didResize" flag
|
||||||
didResize = false;
|
didResize = false;
|
||||||
@ -112,7 +120,8 @@
|
|||||||
|
|
||||||
// Bind the "mousedown" event in the "resize" namespace
|
// Bind the "mousedown" event in the "resize" namespace
|
||||||
_elem.bind("mousedown.resize", function(e) {
|
_elem.bind("mousedown.resize", function(e) {
|
||||||
if (inResizeRegion(e.pageX, _elem))
|
// Do not triger startResize if clicked element is select-tag, as it may causes conflict in some browsers
|
||||||
|
if (inResizeRegion(e.pageX, _elem) && e.target.tagName != 'SELECT')
|
||||||
{
|
{
|
||||||
// Start the resizing
|
// Start the resizing
|
||||||
startResize(outerTable, _elem, function(_w) {
|
startResize(outerTable, _elem, function(_w) {
|
||||||
|
Loading…
Reference in New Issue
Block a user