Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Calmitude

Pages: [1]
1
Help for ParamQuery Pro / Re: Scrolling with Mac
« on: October 03, 2014, 09:17:33 pm »
Thanks for the fast response!

The first jsfiddle works perfectly for me, while the second works better than the current situation although it performs worse than the second one (more screen jumping).
When implemented, the first solution massively improves the situation although when scrolling a little fast the whole screen jumps.
Here's the log:

Quote
raw num is  0.1
normalized num is  1
raw num is  10.641666666666667
normalized num is  1
raw num is  3.975
normalized num is  1
raw num is  -6.85
normalized num is  -1
raw num is  -5.05
normalized num is  -1
raw num is  9.9
normalized num is  1
raw num is  -7.95
normalized num is  -1
raw num is  -12.1
normalized num is  -1
raw num is  -3.45
normalized num is  -1
raw num is  -0.025
normalized num is  -1
raw num is  -11.375
normalized num is  -1
raw num is  -8.625
normalized num is  -1
raw num is  7.45
normalized num is  1
raw num is  12.466666666666667
normalized num is  1
raw num is  2.2
normalized num is  1
raw num is  0.15
normalized num is  1
raw num is  8.8
normalized num is  1
raw num is  3.35
normalized num is  1
raw num is  2.625
normalized num is  1
raw num is  0.125
normalized num is  1
raw num is  6.775
normalized num is  1
raw num is  8.825
normalized num is  1
raw num is  1.75
normalized num is  1
raw num is  0.1
normalized num is  1
raw num is  5.475
normalized num is  1
raw num is  6.6
normalized num is  1
raw num is  0.175
normalized num is  1
raw num is  0.075
normalized num is  1
raw num is  0.025
normalized num is  1
raw num is  0.025
normalized num is  1
raw num is  0.025
normalized num is  1
raw num is  -0.025
normalized num is  -1
raw num is  -8.141666666666667
normalized num is  -1
raw num is  -17.125
normalized num is  -1
raw num is  -4.15
normalized num is  -1
raw num is  -0.025
normalized num is  -1
raw num is  -10.775
normalized num is  -1
raw num is  -4.9
normalized num is  -1
raw num is  -3.975
normalized num is  -1

2
Help for ParamQuery Pro / Re: Scrolling with Mac
« on: October 02, 2014, 05:30:26 pm »
My application is going to be released in a few days (public on Monday), so I'd appreciate any hack that would solve the issue. Although I use a Mac, my mouse is not a Mac mouse, which is why it took so much time for the issue to be found.

3
Help for ParamQuery Pro / Re: Scrolling with Mac
« on: October 02, 2014, 12:41:55 pm »
VirtualY: false indeed fixes it, but I need to work with hundreds of rows so it seems necessary.
Whenever bad scrolling happens, the whole page scrolls as well, which is almost surely linked.

4
Help for ParamQuery Pro / Re: Scrolling with Mac
« on: October 01, 2014, 04:42:28 pm »
Solving this is crucial for user experience, so would really appreciate some help.

5
Help for ParamQuery Pro / Scrolling with Mac
« on: September 28, 2014, 02:57:21 am »
I'm building an application using ParamQuery for a company that uses Mac's. When they scroll in the grid by using either the trackpad or the Mac mouse wheel, the scrolling is very bad (it scrolls a little then stops, then goes up a little more and so on). With any other mouse, the scrolling is fine.
I'm at a loss why... any ideas?

6
Thank you for your demo, I've gotten it working.
I believe the error could be a paramquery bug, since the solution involved populating the data only once the grid had been made through:
Code: [Select]
grid.pqGrid("option", "dataModel.data", @tableContent)
grid.pqGrid("refreshDataAndView")

On all other tables, dataModel.data could be set directly in the object used to make the grid.


Lastly a big thanks for paramquery, it's incredibly flexible to work with!

7
The bug mentioned in this thread seemed to be the only explanation for the following behaviour:

Code: [Select]
var columns = [{title:"id", dataIndx:"_id", dataType: "integer", editable:false, hidden:true}]
columns.push({title: "", minWidth: 27, maxWidth: 27, type: "detail", editable: false})
//columns.push rest of columns
var tableData = {
   title:"Test",
   colModel:columns,
   dataModel:{},
   detailModel = {}
}
$(#grid).pqGrid(tableData)

The above works fine and if I define detailModel correctly then the nested grid works as expected.
If dataModel.data is set to something else like [{"_id":"1"}] and I comment out the line pushing the type: "detail" column, the above still works correctly.

However with the above code and tableData.dataModel.data = [{"_id":"1"}] for example, I get the following error:
Uncaught TypeError: Cannot read property 'children' of null in:
Code: [Select]
m.detachInitView = function (b, a) {
        var d = this.that,
            c = d.data;
        if(c && c.length) {
            for(var d = d.$tbl.children("tbody").children("tr.pq-grid-row")
where d.$tbl is null

Any ideas why?


As to Meteor, the server-side code publishes a subset of the data that is accessible by the client, so I don't want the client accessing the database directly.

8
For those unable to use location "remote" (I'm using MongoDB behind Meteor), is there any way we can still use nested grids?

Pages: [1]