This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Widget Issue
#1
Hi,

I've an object in a plan that opens a widget, inside the widget there is a circular slider set to "inline in usermode" to change a setpoint.
This slider is in the same area than the object that opens the widget but inside it. 
The issue is that when pressing the button to open the widget the same touch changes de value of the slider inside...
Is there any way to solve it?
Reply
#2
Try adding this to Custom JavaScript:
Code:
var fn = window.showWidgetPopup
if (fn) {
  window.showWidgetPopup = function(arg1, arg2) {
    setTimeout(function() {
      fn(arg1, arg2)
    }, 10)
  }
}
Reply
#3
(29.01.2025, 06:22)admin Wrote: Try adding this to Custom JavaScript:
Code:
var fn = window.showWidgetPopup
if (fn) {
  window.showWidgetPopup = function(arg1, arg2) {
    setTimeout(function() {
      fn(arg1, arg2)
    }, 10)
  }
}

It works! Tahnks!
Reply
#4
(29.01.2025, 06:22)admin Wrote: Try adding this to Custom JavaScript:
Code:
var fn = window.showWidgetPopup
if (fn) {
  window.showWidgetPopup = function(arg1, arg2) {
    setTimeout(function() {
      fn(arg1, arg2)
    }, 10)
  }
}

Hi,

And is it possible to open a widget centered in the current view on a plan when it is scrollable?

Usermode view is set to "Center horizontally, auto-size width" and depending on the position of the verticall scroll widgets open inside de current view or are partially out of it...

Thanks
Reply
#5
This can't be fully fixed without some firmware modifications.
Partial work-around is to scroll the content so the widget is fully visible:
Code:
$(function() {
  $('.layer-widget').on('widget-show', function() {
    this.scrollIntoView({ block: 'nearest' })
  })
})
Reply
#6
(30.01.2025, 07:40)admin Wrote: This can't be fully fixed without some firmware modifications.
Partial work-around is to scroll the content so the widget is fully visible:
Code:
$(function() {
  $('.layer-widget').on('widget-show', function() {
    this.scrollIntoView({ block: 'nearest' })
  })
})

Thank you!
Reply


Forum Jump: