Giter Club home page Giter Club logo

axebomber-clj's People

Contributors

kawasima avatar ryotan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

ryotan patorash

axebomber-clj's Issues

rowspan使用時かつ行折り返しが発生した場合の処理

お世話になっております。
弊社にて、当ソフトウェアを使用させて頂きましたところ、
以下のような事象が発生致しました。

事象

rowspan使用時かつ行折り返しが発生した場合、rowspanのサイズが折り返しで増加した行数に追従しない。

screenshot

再現テスト

https://gist.github.com/sambatriste/b2f4b5a3c6c7bb35ee78#file-wrap_and_rowspan-clj

(ns axebomber.wrap_and_rowspan
  (:require [clojure.java.io :as io])
  (:use [axebomber usermodel]
        [axebomber.renderer excel]
        [axebomber.style :only [create-style]]
        [midje.sweet]))


(fact "折り返しとrowspanが混ざるとrowspanが足りない?"
      (let [wb (create-workbook) sheet (to-grid (.createSheet wb "otameshi"))]
        (render sheet {:x 0 :y 0}
                [:table
                 [:tr
                  [:td {:style "background-color: grey25" :data-width 15} "親項目"]
                  [:td {:style "background-color: grey25" :data-width 21} "子項目1"]
                  [:td {:style "background-color: grey25" :data-width 15} "子項目2"] ;; ここの幅を広くするか
                  ]
                 [:tr
                  [:td {:rowspan 2} "この下の罫線がへんなかんじ↓"]
                  [:td "ほげほげ"]
                  [:td "ふがふが"]
                  ]
                 [:tr
                  [:td "もげもげ"]
                  [:td "ここが折り返されるとrowspanとずれるのではないだろうか?"]       ;; これを短くして折り返さないようにすると期待通りの動きになります。
                  ]
                 ]
                )
        (with-open [out (io/output-stream "target/wrap_and_rowspan.xlsx")]
          (.write wb out))))

原因

ソースコードをつまびらかに見ていないので即答しかねるのですが、
折り返し発生時にrowspanの計算がされていないのではないかと危惧しております。

おわりに

本事象のため、折角の美しい方眼紙に余分な罫線が含まれてしまい、
現場では手動で罫線を消すという惨事が発生しております。

何卒ご検討のほど宜しくお願い致します。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.