ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

Text are being cut off inside the .content.padding

Open JonathanHindi opened this issue 12 years ago • 6 comments

I don't know if this glitch is specific to modal or no, but simply I have a modal that contain some text which does not display normally. (Check the screenshot from iOS simulator)

screen shot 2013-12-09 at 12 20 29 pm

Code generating the above as follows: (the youtube tag is a custom AngularJS directive)

<div class="modal">
  <header class="bar bar-header bar-positive">
    <h1 class="title">{{video.title}}</h1>
    <button class="button button-positive" ng-click="closeModal()">Close</button>
  </header>
  <content has-header="true">

    <youtube code="video.id"></youtube>

    <div class="content padding">
      {{video.description}}

    </div>

  </content>
</div>

The problem happens when both the text is placed directly into the .content div and when placing inside a <p> tag. I traced the problem down to a missing css property white-space: normal; for the .content class. I didn't test if adding this will affect any other components.

Btw, thanks for the nice framework :+1:

JonathanHindi avatar Dec 09 '13 10:12 JonathanHindi

I was able to reproduce the bug on a normal content.padding without the modal component.

JonathanHindi avatar Dec 09 '13 10:12 JonathanHindi

@mlynch why was the white-space: nowrap added to .scroll?

https://github.com/driftyco/ionic/commit/faf6ed7c610efbad2cb82b562ad29ad34ab4c238#diff-c1c066838a2f5407fb6bc956e0d2b7acR2284

adamdbradley avatar Dec 09 '13 18:12 adamdbradley

Hmm, I'm not sure. Feel free to remove it.

On Mon, Dec 9, 2013 at 12:08 PM, Adam Bradley [email protected]:

@mlynch https://github.com/mlynch why was the white-space: nowrap added to .scroll?

faf6ed7#diff-c1c066838a2f5407fb6bc956e0d2b7acR2284https://github.com/driftyco/ionic/commit/faf6ed7c610efbad2cb82b562ad29ad34ab4c238#diff-c1c066838a2f5407fb6bc956e0d2b7acR2284

— Reply to this email directly or view it on GitHubhttps://github.com/driftyco/ionic/issues/298#issuecomment-30156152 .

mlynch avatar Dec 09 '13 19:12 mlynch

+1 for fix

mlegenhausen avatar Dec 12 '13 10:12 mlegenhausen

I confirm, the fix is working now. :+1: Thanks.

JonathanHindi avatar Dec 13 '13 10:12 JonathanHindi

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

ionitron-bot[bot] avatar Sep 06 '18 02:09 ionitron-bot[bot]