File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,6 @@ if (!require("clock_info").loadCount) { // don't load if a clock_info was alread
22 // Load the clock infos
33 let clockInfoItems = clock_info . load ( ) ;
44
5- // TODO only do checks if widget_utils.swipeOn is being used
6- let wuo = widget_utils . offset ;
7-
85 let clockInfoMenu = clock_info . addInteractive ( clockInfoItems , {
96 app : "widclkinfo" ,
107 // Add the dimensions we're rendering to here - these are used to detect taps on the clock info area
@@ -19,9 +16,8 @@ if (!require("clock_info").loadCount) { // don't load if a clock_info was alread
1916 // info: data returned from itm.get() containing text/img/etc
2017 // options: options passed into addInteractive
2118 clockInfoInfo = info ;
22- wuo = 0 | widget_utils . offset ;
23- clockInfoMenu . y = options . y + wuo ;
2419 if ( WIDGETS [ "clkinfo" ] ) {
20+ clockInfoMenu . y = options . y ;
2521 WIDGETS [ "clkinfo" ] . draw ( WIDGETS [ "clkinfo" ] ) ;
2622 console . log ( "Clock Info was updated, thus drawing widget." ) ;
2723 }
@@ -35,8 +31,7 @@ if (!require("clock_info").loadCount) { // don't load if a clock_info was alread
3531 width : clockInfoMenu . w ,
3632 draw :function ( e ) {
3733 clockInfoMenu . x = e . x ;
38- wuo = 0 | widget_utils . offset ;
39- clockInfoMenu . y = e . y + wuo ;
34+ clockInfoMenu . y = e . y ;
4035 var o = clockInfoMenu ;
4136 // Clear the background
4237 g . reset ( ) ;
You can’t perform that action at this time.
0 commit comments