Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: resize-mark left property isn't calculated properly when h-scrollbar isn't at 0 #427

Closed
wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Feb 18, 2013

shot

@tonytomov
Copy link
Owner

Hello,

I can not reproduce the bug. Which version is used? Please prepare a testcase with source code in order to see the problem.
Thank you.

Rgerads

@ghost
Copy link
Author

ghost commented Feb 19, 2013

This is with git master. I checked, and 4.4.4 is ok so I bisected the offending commit to a8d0eab.
Here's the config I use:

            $grid.jqGrid({
                url:rows_api_url,
                datatype:"json",
                colNames:colNames,
                colModel:colModel,
                rowNum:10,
                width:690,
                rowList:[10, 20, 50, 100],
                pager:'#pager',
                sortname:'0',
                viewrecords:true,
                sortorder:"desc",
                jsonReader:{
                    repeatitems:false
                },
                shrinkToFit:false, // needed for frozen columns
                rownumbers:true,
                height:"250px" //'auto'

            });

$grid.jqGrid('setFrozenColumns'); // the first column is frozen
$grid.jqGrid('gridResize');

@tonytomov tonytomov closed this Mar 21, 2013
@kiaplayer
Copy link

@tonytomov
Hello. This bug still present in version 4.5.2. Resize-mark appears in wrong place (depends on x-scroll position).

1
2

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <title>jqGrid bug demo</title>
    <link rel="stylesheet" type="text/css" media="screen" href="css/ui-lightness/jquery-ui-1.9.2.custom.css" />
    <link rel="stylesheet" type="text/css" media="screen" href="css/ui.jqgrid.css" />
    <script src="js/jquery-1.9.0.min.js" type="text/javascript"></script>
    <script src="js/i18n/grid.locale-en.js" type="text/javascript"></script>
    <script src="js/jquery.jqGrid.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $("#list").jqGrid({
                data: [{col1:'val1', col2:'val2', col3:'val3', col4:'val4', col5:'val5'}],
                colModel: [{name:'col1'}, {name:'col2'}, {name:'col3'}, {name:'col4'}, {name:'col5'}],
                datatype: 'local',
                gridview: true,
                loadonce: true,
                autowidth: true,
                shrinkToFit: false
            });
        });
    </script>
</head>
<body>
<table id="list"><tr><td></td></tr></table>
</body>
</html>

@tonytomov
Copy link
Owner

Hello,

Thanks have fixed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants