mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-28 18:00:09 +00:00
minor bugfix + some tweaks...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
ee4b7331e3
commit
c9de5e4b72
@ -3755,7 +3755,7 @@ var BaseBrowserPrototype = {
|
|||||||
close: makeEventMethod('close', function(evt, reason){}),
|
close: makeEventMethod('close', function(evt, reason){}),
|
||||||
|
|
||||||
|
|
||||||
// Constructor...
|
// Instance constructor...
|
||||||
//
|
//
|
||||||
// BaseBrowser(items(make, options)[, options])
|
// BaseBrowser(items(make, options)[, options])
|
||||||
// -> browser
|
// -> browser
|
||||||
@ -4291,7 +4291,7 @@ var HTMLBrowserPrototype = {
|
|||||||
return this.keyboard.parseStringHandler(code, context || this) },
|
return this.keyboard.parseStringHandler(code, context || this) },
|
||||||
|
|
||||||
|
|
||||||
// DOM props..
|
// Props..
|
||||||
//
|
//
|
||||||
// XXX the problem with nested browser elements .update(..) not
|
// XXX the problem with nested browser elements .update(..) not
|
||||||
// updating unless called with correct context is that .dom / .container
|
// updating unless called with correct context is that .dom / .container
|
||||||
@ -4325,6 +4325,16 @@ var HTMLBrowserPrototype = {
|
|||||||
: this.container.appendChild(value))
|
: this.container.appendChild(value))
|
||||||
this.__dom = value },
|
this.__dom = value },
|
||||||
|
|
||||||
|
// page-relative items...
|
||||||
|
get pagetop(){
|
||||||
|
return this.get('pagetop') },
|
||||||
|
set pagetop(item){
|
||||||
|
this.scrollTo(item, 'start') },
|
||||||
|
get pagebottom(){
|
||||||
|
return this.get('pagebottom') },
|
||||||
|
set pagebottom(item){
|
||||||
|
this.scrollTo(item, 'end') },
|
||||||
|
|
||||||
|
|
||||||
// Extending query...
|
// Extending query...
|
||||||
//
|
//
|
||||||
@ -4339,7 +4349,6 @@ var HTMLBrowserPrototype = {
|
|||||||
// .search('pagebottom'[, offset] ..)
|
// .search('pagebottom'[, offset] ..)
|
||||||
//
|
//
|
||||||
// XXX add support for pixel offset???
|
// XXX add support for pixel offset???
|
||||||
// XXX BROKEN -- 'pagetop' / 'pagebottom'
|
|
||||||
search: function(pattern){
|
search: function(pattern){
|
||||||
var args = [...arguments].slice(1)
|
var args = [...arguments].slice(1)
|
||||||
var p = pattern
|
var p = pattern
|
||||||
@ -4367,6 +4376,7 @@ var HTMLBrowserPrototype = {
|
|||||||
- Math.max(0, st + H + offset) <= 0
|
- Math.max(0, st + H + offset) <= 0
|
||||||
&& stop(e) },
|
&& stop(e) },
|
||||||
{
|
{
|
||||||
|
rawResults: true,
|
||||||
reverse: pos == 'bottom' ?
|
reverse: pos == 'bottom' ?
|
||||||
'flat'
|
'flat'
|
||||||
: false,
|
: false,
|
||||||
@ -5053,8 +5063,7 @@ var HTMLBrowserPrototype = {
|
|||||||
} else {
|
} else {
|
||||||
delete e.keys
|
delete e.keys
|
||||||
}
|
}
|
||||||
}, {skipDisabled: false})
|
}, {skipDisabled: false}) },
|
||||||
},
|
|
||||||
// NOTE: element alignment is done via the browser focus mechanics...
|
// NOTE: element alignment is done via the browser focus mechanics...
|
||||||
__focus__: function(evt, elem){
|
__focus__: function(evt, elem){
|
||||||
var that = this
|
var that = this
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user