Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Commit

Permalink
Fix #828
Browse files Browse the repository at this point in the history
  • Loading branch information
cutls committed Jan 25, 2023
1 parent 1f42a81 commit fc75918
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/js/ui/layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -417,19 +417,20 @@ export function parseColumn(targetStr?: string | 'add', dontClose?: boolean) {
const height = ui.size.height
if ($(this).hasClass('boxIn')) {
//縦幅。その縦幅を持つカラムのidは
if (!$(this).attr('tlid')) return
if (!$(this).attr('tlid')) return console.log('no tlid to tate')
const key = parseInt($(this).attr('tlid') || '0', 10)
const column = columns[key]
column.height = height
columns[key] = column
} else {
//横幅。その縦幅を持つカラムのidは
if (!$(this).attr('tlid')) return
if (!$(this).find('.boxIn').attr('tlid')) return console.log('no tlid to yoko')
const key = parseInt($(this).find('.boxIn').attr('tlid') || '0', 10)
const column = columns[key]
column.width = width
columns[key] = column
}
console.log(columns)
setColumn(columns)
},
})
Expand Down

0 comments on commit fc75918

Please sign in to comment.