Increased maximum Pattern Length

The former maximum Pattern Length was 32, increased it to 128.

in PatternEditorRuler introduced method updateSize to avoid duplicated
code.