Any changes to Scroller setup in last couple of months?

5 views
Skip to first unread message

Joel Hughes

unread,
Dec 28, 2017, 4:24:39 PM12/28/17
to foam-framework-discuss
Since updating foam, which was 2 or 3 months out of date, our Scroller scroll bars are no longer working.  
The mouse scroll wheel actuates the scrolling and scroll bar, but not clicking on the scroll bar itself. 
I do remember a warning regarding the 'scroll wheel' which is no longer generated. 

Example use:
                var fc = this.FilterController.create({
                    textSearch: false,
                    allowAddingFilters: false,
                    data$: this.tableWorkorderDAO$,
                    tableView: this.Scroller.create({
                        of: this.Workorder,
                                                    tableView: {
                            class: 'foam.u2.TableSelection',
                            view: {
                                class: 'foam.u2.TableView',
                                columns: this.tableColumns
                            },
                            bulkActions: [
                                this.EDIT_ACTION
                            ],
                            selectionQuery$: this.workorderSelectionQuery$
                        }
                    }, this)
                }, this);



Joel

Kevin Greer

unread,
Dec 28, 2017, 4:36:38 PM12/28/17
to Joel Hughes, foam-framework-discuss
If you just use the foam.u2.view.ScrollTableView instead, which already has scrolling setup properly, does that work for you?

--
You received this message because you are subscribed to the Google Groups "foam-framework-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to foam-framework-discuss+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Joel Hughes

unread,
Dec 28, 2017, 5:18:25 PM12/28/17
to foam-framework-discuss

I added property 'view' to ScrollTableView

    {
      class: 'foam.u2.ViewSpec',
      name: 'view',
      value: { class: 'foam.u2.TableView' }
    }


Then modified initE

            //start(this.TableView, {data$: this.scrolledDao$}).
            start(this.view, {
                             data$: this.scrolledDao$
            }).end().


And called it thus:

                var fc = this.FilterController.create({
                    textSearch: false,
                    allowAddingFilters: false,
                    data$: this.filteredDAO$,
                    tableView: {
                        class: 'foam.u2.TableSelection',
                        view: {
                            class: 'foam.u2.view.ScrollTableView',
                            view: {
                                class: 'foam.u2.TableView',
                                columns: this.tableColumns
                            },
                            selectionQuery$: this.selectionQuery$
                        }
                    }
                }, this);



This gives me a scroll bar with the same behaviour: works with scroll wheel, but not clicking on the scroll bar itself.

Joel 

Kevin Greer

unread,
Dec 31, 2017, 2:20:07 PM12/31/17
to Joel Hughes, foam-framework-discuss
Do you mean grabbing the scrollbar and dragging it, or clicking on a new position and it not jumping to that spot?

To unsubscribe from this group and stop receiving emails from it, send an email to foam-framework-discuss+unsubscri...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Kevin Greer

unread,
Dec 31, 2017, 2:38:15 PM12/31/17
to Joel Hughes, foam-framework-discuss

On 28 December 2017 at 16:24, Joel Hughes <joel.l...@gmail.com> wrote:

--

Joel Hughes

unread,
Dec 31, 2017, 5:32:09 PM12/31/17
to Kevin Greer, foam-framework-discuss
re: changes - the previous version of ScrollCView works. 

re: grabbing, clicking - I can neither grab and drag or click, only the scroll wheel affects the view.  
Noticed that clicking does 'work' if the click is a distance from the scroll bar indicator - meaning if the scroll bar indicator is at the top clicking near the bottom of the view the scroll bar indicator will move down.  But clicking near the indicator has no effect and it's not possible to click and drag. 

Joel 


To unsubscribe from this group and stop receiving emails from it, send an email to foam-framework-discuss+unsubscri...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages