equal
deleted
inserted
replaced
758 RenderView* v = view(); |
758 RenderView* v = view(); |
759 if (v && v->frameView() && v->frameView()->frame() && v->frameView()->frame()->bridge()) { |
759 if (v && v->frameView() && v->frameView()->frame() && v->frameView()->frame()->bridge()) { |
760 int maxTextWidth = v->frameView()->frame()->bridge()->maxBidiWidth(); |
760 int maxTextWidth = v->frameView()->frame()->bridge()->maxBidiWidth(); |
761 maxTextWidth = max(maxTextWidth - leftOffset(m_height), 0); |
761 maxTextWidth = max(maxTextWidth - leftOffset(m_height), 0); |
762 availableWidth = min(availableWidth, maxTextWidth); |
762 availableWidth = min(availableWidth, maxTextWidth); |
|
763 //total width is more then availaible width.Dont justify based on screen width |
|
764 availableWidth = totWidth > availableWidth ? lineWidth(m_height) : availableWidth ; |
763 } |
765 } |
764 #endif |
766 #endif |
765 spaceAdd = (availableWidth - totWidth)*spaces/numSpaces; |
767 spaceAdd = (availableWidth - totWidth)*spaces/numSpaces; |
766 static_cast<InlineTextBox*>(r->box)->setSpaceAdd(spaceAdd); |
768 static_cast<InlineTextBox*>(r->box)->setSpaceAdd(spaceAdd); |
767 totWidth += spaceAdd; |
769 totWidth += spaceAdd; |