Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Image location don't respect Column width #650

Open
Labels
@yuvpf

Description

@yuvpf

I set custom column width while defining sheet columns. When adding an image using coordinate (50% column to use), the image don't respect my custom width.

Additional explanation:#650 (comment)

Code :

sheet.columns=[{header:'Id',key:'id',width:10},{header:'Name',key:'name',width:32},];varimageId2=workbook.addImage({base64:myBase64Image,extension:'png',});sheet.getColumn(4).width=38;// sheet.addImage(imageId2, 'B2:D6');sheet.addImage(imageId2,{tl:{col:1,row:1},br:{col:1.5,row:4}});sheet.addImage(imageId2,{tl:{col:3,row:1},br:{col:3.5,row:4}});workbook.xlsx.writeBuffer({base64:true}).then(function(xls64){// donevardata=newBlob([xls64],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});saveAs(data,"output.xlsx");});

Actual result :

image

Expected result:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp