forked from 0x2620/pandora
handle edits section in window resize handler
This commit is contained in:
parent
3484c1e220
commit
a739033aaf
1 changed files with 11 additions and 1 deletions
|
@ -960,7 +960,6 @@ pandora.getLargeEditTimelineURL = function(edit, type, i, callback) {
|
||||||
var image = Ox.$('<img>')
|
var image = Ox.$('<img>')
|
||||||
.on({
|
.on({
|
||||||
load: function() {
|
load: function() {
|
||||||
Ox.print('DRAWING TIMELINE', i, 'AT', Math.floor((clip.position - timelineIn) * fps), 'OF', width)
|
|
||||||
context.drawImage(image, Math.floor((clip.position - timelineIn) * fps), 0);
|
context.drawImage(image, Math.floor((clip.position - timelineIn) * fps), 0);
|
||||||
callback();
|
callback();
|
||||||
}
|
}
|
||||||
|
@ -1603,6 +1602,17 @@ pandora.resizeWindow = function() {
|
||||||
pandora.$ui.calendar.resizeCalendar();
|
pandora.$ui.calendar.resizeCalendar();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else if (pandora.user.ui.section == 'edits') {
|
||||||
|
if (!pandora.user.ui.edit) {
|
||||||
|
// ...
|
||||||
|
} else {
|
||||||
|
pandora.$ui.editPanel && pandora.$ui.editPanel.options({
|
||||||
|
height: pandora.$ui.appPanel.size(1),
|
||||||
|
width: pandora.$ui.document.width() - pandora.$ui.mainPanel.size(0) - 1
|
||||||
|
});
|
||||||
|
}
|
||||||
|
} else if (pandora.user.ui.section == 'texts') {
|
||||||
|
// ...
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue