Flexigrid icon indicating copy to clipboard operation
Flexigrid copied to clipboard

Layout out of order when warpped with padding/margin div in FireFox

Open j796160836 opened this issue 11 years ago • 0 comments

Hi, I found a bug but I don't know how to solve it. I use Flexigrid in my edited CSS layout template. When I put Flexigrid in a DIV and set that padding and margin. In Chome/IE8/Safari , this situation works fine but Firefox. It has a problem when you hover the Toggle column button [.nBtn] and column resize [.cDrag div]. It shown the wrong place [css left attribute is wrong].

Here is the code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>

<link rel="stylesheet" type="text/css" href="images/flexigrid.pack.css" />
<style type="text/css">
.flexigrid div.fbutton .add {
background: url(images/add.png) no-repeat center left;
}

.flexigrid div.fbutton .delete {
background: url(images/close.png) no-repeat center left;
}

.textbox{
margin: 100px;
padding: 100px;
}
</style>

<script type="text/javascript" src="js/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="js/jquery.cookie.js"></script>
<script type="text/javascript" src="js/flexigrid.js"></script>

</head>

<body>
<div class="textbox">
<table class="flexme3"></table>
</div>
<script type="text/javascript">
$(".flexme3").flexigrid({
url : 'post-json.php',
dataType : 'json',
colModel : [ {
display : 'ISO',
name : 'iso',
width : 40,
sortable : true,
align : 'center'
}, {
display : 'Name',
name : 'name',
width : 180,
sortable : true,
align : 'left'
}, {
display : 'Printable Name',
name : 'printable_name',
width : 300,
sortable : true,
align : 'left',
}],

sortname : "iso",
sortorder : "asc",
usepager : true,
title : 'Countries',
useRp : true,
rp : 15,
width : 'auto',
height : 'auto',
});
</script>

</body>
</html>

j796160836 avatar Aug 22 '12 03:08 j796160836