mobile.SelectBox

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

mobile.SelectBox

jorgearr
 
I found this would improve the widget please test and add it to a rivesed version if you can.
 
I tested on several browsers and it worked.
 
The purpose is to show the drop-down (menu) using the SelectBox calling as its anchor.
 
The code change:
 
In qx.ui.mobile.form.SelectBox make the following addition.
 
_createSelectionDialog : function() {
      //var menu = new qx.ui.mobile.dialog.Menu();
      var menu = new qx.ui.mobile.dialog.Menu(null,this);

 
Notice: I just added "null,this" between the parenthesis. Nothing else needs to be done
 
 
Regards,
 
Jorge

 
> From: qooxdoo-devel-request@lists.sourceforge.net
> Subject: qooxdoo-devel Digest, Vol 109, Issue 14
> To: qooxdoo-devel@lists.sourceforge.net
> Date: Wed, 17 Jun 2015 15:00:15 +0000
>
> Send qooxdoo-devel mailing list submissions to
> qooxdoo-devel@lists.sourceforge.net
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> or, via email, send a message with subject or body 'help' to
> qooxdoo-devel-request@lists.sourceforge.net
>
> You can reach the person managing the list at
> qooxdoo-devel-owner@lists.sourceforge.net
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of qooxdoo-devel digest..."
>
>
> Today's Topics:
>
> 1. Bind property to backgroundColor of a virtual tree item (woprandi)
> 2. Re: How can i scroll to the end of a list , after list item
> updated (continue), using dynamic virtual list widget sizes?
> (Phyo Arkar)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 17 Jun 2015 07:26:59 -0700 (MST)
> From: woprandi <william.oprandi@gmail.com>
> Subject: [qooxdoo-devel] Bind property to backgroundColor of a virtual
> tree item
> To: qooxdoo-devel@lists.sourceforge.net
> Message-ID: <1434551219887-7587250.post@n2.nabble.com>
> Content-Type: text/plain; charset=us-ascii
>
> Hi,
>
> I have a virtual tree and I would want to set background color of a item
> depending of a model property, it works but item label disappear. Check this
> example : http://tinyurl.com/oss446w
>
> Anyone can help me ? Thanks
>
>
>
> --
> View this message in context: http://qooxdoo.678.n2.nabble.com/Bind-property-to-backgroundColor-of-a-virtual-tree-item-tp7587250.html
> Sent from the qooxdoo mailing list archive at Nabble.com.
>
>
>
> ------------------------------
>
> Message: 2
> Date: Wed, 17 Jun 2015 21:29:25 +0630
> From: Phyo Arkar <phyo.arkarlwin@gmail.com>
> Subject: Re: [qooxdoo-devel] How can i scroll to the end of a list ,
> after list item updated (continue), using dynamic virtual list widget
> sizes?
> To: qooxdoo Development <qooxdoo-devel@lists.sourceforge.net>
> Message-ID:
> <CA+HjJrgRNGcvhSTu+RGC5XP7f0Bx69yDSKJbBiMW9Ud1kz21+w@mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> About disaapearing Scrollbars on Chrome? Ok i will file one.
> It dosen't appear in my code tho.
>
> On Wed, Jun 17, 2015 at 8:55 PM, Mustafa Sak <mustafa.sak@1und1.de> wrote:
>
> > You are using Chrome right?
> >
> >
> >
> > Would you please report a bug?
> >
> >
> >
> > Dank & Gru?
> > * Mustafa Sak*
> >
> > Softwareentwickler
> > Mail Development
> >
> > 1&1 Mail & Media Development & Technology GmbH | Brauerstra?e 48 | 76135
> > Karlsruhe | Germany
> > Phone: +49 721 91374-6977
> > E-Mail: mustafa.sak@1und1.de | Web: www.1und1.de
> >
> >
> >
> > *Von:* Phyo Arkar [mailto:phyo.arkarlwin@gmail.com]
> > *Gesendet:* Mittwoch, 17. Juni 2015 10:51
> > *An:* qooxdoo Development
> > *Betreff:* Re: [qooxdoo-devel] How can i scroll to the end of a list ,
> > after list item updated (continue), using dynamic virtual list widget sizes?
> >
> >
> >
> > I can't see the scroll bar , it was hidden on purpose?
> >
> >
> >
> > On Wed, Jun 17, 2015 at 3:19 PM, Phyo Arkar <phyo.arkarlwin@gmail.com>
> > wrote:
> >
> > Thanks a lot for helping me out!
> >
> > When a singile last one is added its ok .
> >
> > When multiple LastOnes are added it dosen't scroll to bottom.
> >
> > Any thoughts?
> >
> >
> >
> > On Wed, Jun 17, 2015 at 1:47 PM, Mustafa Sak <mustafa.sak@1und1.de> wrote:
> >
> > Wow,
> >
> >
> >
> > it was not so easy to solve that issue. But would you please try this
> > example? http://tinyurl.com/nus7pev
> >
> >
> >
> > Dank & Gru?
> > * Mustafa Sak*
> >
> > Softwareentwickler
> > Mail Development
> >
> > 1&1 Mail & Media Development & Technology GmbH | Brauerstra?e 48 | 76135
> > Karlsruhe | Germany
> > Phone: +49 721 91374-6977
> > E-Mail: mustafa.sak@1und1.de | Web: www.1und1.de
> >
> >
> >
> > *Von:* Phyo Arkar [mailto:phyo.arkarlwin@gmail.com]
> > *Gesendet:* Montag, 15. Juni 2015 12:23
> > *An:* qooxdoo-devel
> > *Betreff:* [qooxdoo-devel] How can i scroll to the end of a list , after
> > list item updated (continue), using dynamic virtual list widget sizes?
> >
> >
> >
> > Previous thread was abandoned so i making new one , with more information.
> >
> > I am now using syncWidget to scroll to bottom of a virtual list when new
> > item is added.
> > But the problem is this virtuallist implementation automatically resizes
> > list item height , and when scrolled inside syncWidget , it is not actually
> > scrolled to the end , but to that widget item?s start.
> >
> > here is handler for list?s updates:
> >
> > this.chat_list.getModel().addListener("change", function() {
> >
> > // qx.ui.core.queue.Manager.flush();
> >
> > qx.ui.core.queue.Widget.remove(this.chat_list,"scrollBottom");
> >
> > // normally using the flush should be time enough for the renderer
> >
> > qx.ui.core.queue.Widget.add(this.chat_list, "scrollBottom");
> >
> > },this)
> >
> > I added a work around by counting how many times layer is updated , if it
> > updated for 3 times , scrolls to button : this._layer.addListener("updated",
> > this._onUpdated, this); .
> > Because i observed whenever a new item is added , layer firest updated 3
> > times and only at the last time it need to actually scroll.
> >
> > Here is the infinite list with auto-resizing of item height from
> > stackoverflow.com/questions/21456941/infinite-scroll-in-qooxdoo-with-virtual-list
> > .
> >
> > qx.Class.define('phwabe.utils.list.InfiniList', {
> >
> > extend: qx.ui.list.List,
> >
> >
> >
> > members: {
> >
> > __deferredCall: null,
> >
> > __scrollBottom: false,
> >
> > __updateCount: 0,
> >
> >
> >
> > _initLayer: *function*() {
> >
> > *this*.base(arguments);
> >
> > console.log("initing layer")
> >
> > *this*._layer.addListener("updated", *this*._onUpdated, *this*);
> >
> > },
> >
> >
> >
> > _onUpdated: *function*(event) {
> >
> > *if* (*this*.__deferredCall === null) {
> >
> > *this*.__deferredCall = *new* qx.util.DeferredCall(*function*() {
> >
> >
> >
> > qx.ui.core.queue.Widget.add(*this*, 'updateSize');
> >
> >
> >
> > }, *this*);
> >
> > }
> >
> > *this*.__deferredCall.schedule();
> >
> > },
> >
> > _updateSize: *function*() {
> >
> > *var* firstRow = *this*._layer.getFirstRow();
> >
> > *var* rowSize = *this*._layer.getRowSizes().length;
> >
> > *for* (*var* row = firstRow; row < firstRow + rowSize; row++) {
> >
> > *var* widget = *this*._layer.getRenderedCellWidget(row, 0);
> >
> > *if* (widget !== null) {
> >
> > *var* height = widget.getSizeHint().height;
> >
> > *this*.getPane().getRowConfig().setItemSize(row, height);
> >
> > }
> >
> >
> >
> > }
> >
> > },
> >
> > _scrollBottom: *function*(limit) {
> >
> > *if* (*this*.__scrollBottom === true) {
> >
> > *this*.scrollToY(1e99)
> >
> > *if* (*this*.__updateCount >= limit) {
> >
> > *this*.__scrollBottom = false
> >
> > }
> >
> >
> >
> > }
> >
> > },
> >
> > syncWidget: *function*(jobs) {
> >
> > *if* (jobs.scrollBottom & jobs.updateSize) {
> >
> > console.log(jobs)
> >
> > *this*.__scrollBottom = true
> >
> > *this*.__updateCount = 0
> >
> > *this*._updateSize()
> >
> > *this*._scrollBottom(5)
> >
> > console.log("BOTH JOBS no of updates" + *this*.__updateCount)
> >
> >
> >
> > *this*.__updateCount += 1
> >
> > } *else* *if* (jobs.scrollBottom) {
> >
> > *this*.__scrollBottom = true
> >
> > *this*.__updateCount = 0
> >
> > } *else* *if* (jobs.updateSize) {
> >
> > *this*._updateSize()
> >
> > *this*._scrollBottom(3)
> >
> > *this*.__updateCount += 1
> >
> > console.log("no of updates" + *this*.__updateCount)
> >
> > }
> >
> >
> >
> > }
> >
> > }
> >
> > });
> >
> > ?
> >
> >
> >
> >
> > ------------------------------------------------------------------------------
> >
> > _______________________________________________
> > qooxdoo-devel mailing list
> > qooxdoo-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> >
> >
> >
> >
> >
> >
> > ------------------------------------------------------------------------------
> >
> > _______________________________________________
> > qooxdoo-devel mailing list
> > qooxdoo-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> >
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> ------------------------------------------------------------------------------
>
>
> ------------------------------
>
> _______________________________________________
> qooxdoo-devel mailing list
> qooxdoo-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
> End of qooxdoo-devel Digest, Vol 109, Issue 14
> **********************************************

------------------------------------------------------------------------------

_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel