Skip to content

Commit

Permalink
Merge pull request #188 from crmtestresco/187-text-input-becomes-misp…
Browse files Browse the repository at this point in the history
…laced-outside-image

Fix image jumping out of view during on-screen keyboard popup
  • Loading branch information
ivictbor authored Oct 19, 2023
2 parents 6620e29 + fa35d56 commit fd4aa23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1261,7 +1261,7 @@ class PainterroProc {

adjustSizeFull() {
const ratio = this.wrapper.documentClientWidth / this.wrapper.documentClientHeight;
if (this.zoom === false) {
if (this.zoom === false && this.textTool.active === false) {
if (this.size.w > this.wrapper.documentClientWidth ||
this.size.h > this.wrapper.documentClientHeight) {
const newRelation = ratio < this.size.ratio;
Expand Down

0 comments on commit fd4aa23

Please sign in to comment.