mirror of https://github.com/espruino/BangleApps
Sliding Clock: BUGFIX: scroll down/up re-appearing in the middle of no where
parent
482a1b96c1
commit
44cddcd963
|
@ -187,7 +187,7 @@ class ShiftText {
|
|||
if(to_y == null)
|
||||
to_y = this.init_y;
|
||||
|
||||
this.setTextPosition(txt, this.init_x, g.getHeight() + 2*this.font_size);
|
||||
this.setTextPosition(txt, this.init_x, g.getHeight()*2);
|
||||
this.moveTo(this.init_x,to_y);
|
||||
}
|
||||
scrollInFromLeft(txt,to_x){
|
||||
|
@ -211,7 +211,7 @@ class ShiftText {
|
|||
this.moveTo(g.getWidth() + this.font_size, this.init_y);
|
||||
}
|
||||
scrollOffToBottom(){
|
||||
this.moveTo(this.init_x,g.getHeight() + this.font_size);
|
||||
this.moveTo(this.init_x,g.getHeight()*2);
|
||||
}
|
||||
onFinished(finished_callback){
|
||||
this.finished_callback = finished_callback;
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
angle_to_horizontal: 90,
|
||||
scroll_off: ['down'],
|
||||
scroll_in: ['up'],
|
||||
speed: 'vslow'
|
||||
},
|
||||
medium: {
|
||||
size: 'msmall',
|
||||
|
@ -56,7 +57,7 @@
|
|||
},
|
||||
large: {
|
||||
angle_to_horizontal: 90,
|
||||
speed: 'slow',
|
||||
speed: 'vslow',
|
||||
color: 'major',
|
||||
scroll_off: ['down'],
|
||||
scroll_in: ['up']
|
||||
|
@ -65,7 +66,7 @@
|
|||
row_defs: [
|
||||
{
|
||||
type: 'large',
|
||||
init_coords: [0.7,0.99],
|
||||
init_coords: [0.8,0.99],
|
||||
row_direction: [0.0,1.0],
|
||||
alignment: 'centre-6',
|
||||
rows: 1
|
||||
|
@ -78,7 +79,7 @@
|
|||
},
|
||||
{
|
||||
type: 'large',
|
||||
init_coords: [0.7,0.99],
|
||||
init_coords: [0.8,0.99],
|
||||
row_direction: [0.0,1.0],
|
||||
alignment: 'centre-6',
|
||||
rows: 1
|
||||
|
|
Loading…
Reference in New Issue