carbon-app / carbon

:black_heart: Create and share beautiful images of your source code
https://carbon.now.sh
MIT License
34.67k stars 1.91k forks source link

Scrollbar shown when exporting PNG with auto-adjust width #680

Closed marlon360 closed 5 years ago

marlon360 commented 5 years ago

Describe the bug When exporting HTML code as PNG with auto-adjust width a scrollbar is shown in the image

To Reproduce Steps to reproduce the behavior:

  1. Add this code <html><head></head><body></body></html>
  2. Choose HTML as Language
  3. Activate Auto-adjust width
  4. Export as PNG

Expected behavior There should not be a scrollbar displayed in the exported image.

Screenshots The exported image: carbon-54

Info (please complete the following information):

mfix22 commented 5 years ago

Hmm upon trying to recreate this, i got this image: carbon-2

For lack of a better method, could you paste your localStorage.CARBON_STATE here?

marlon360 commented 5 years ago

This is my CARBON_STATE:

{  
   "paddingVertical":"16px",
   "paddingHorizontal":"19px",
   "marginVertical":"45px",
   "marginHorizontal":"45px",
   "backgroundMode":"color",
   "backgroundColor":"rgba(255,255,255,1)",
   "dropShadow":false,
   "dropShadowOffsetY":"7px",
   "dropShadowBlurRadius":"21px",
   "theme":"one-light",
   "windowTheme":"none",
   "language":"htmlmixed",
   "fontFamily":"Ubuntu Mono",
   "fontSize":"18px",
   "lineHeight":"145%",
   "windowControls":false,
   "widthAdjustment":true,
   "lineNumbers":true,
   "exportSize":"2x",
   "watermark":false,
   "squaredImage":false,
   "preset":null,
   "loading":false,
   "online":true,
   "uploading":false,
   "aspectRatio":4.427184466019417,
   "icon":"&#x2F;static&#x2F;presets&#x2F;1.png"
}
mfix22 commented 5 years ago

Closed with #717