6

This occurs in the Stack Exchange android app released recently to the public.

When someone posts a code block in their question or answer, the code block is cut off on the right hand side, and I can't scroll to the right to view the rest of it. How can I view these code blocks?

migrated from stackoverflow.com Jan 30 '14 at 1:03

This question came from our site for professional and enthusiast programmers.

  • No repro on an android; code blocks appear and are even word-wrapped so there's no horizontal cut-off. VTC as unclear because we're missing information like the mobile phone and browser in question. – doppelgreener Jan 30 '14 at 1:09
  • I've loaded the stack exchange app on my samsung galaxy S2. I've accessed stack over through the app. ~ It shows the code block but when I try to slide to see the rest of the code to the right, it stops. – user2638098 Jan 30 '14 at 1:22
  • Oh, is this the Android app? – doppelgreener Jan 30 '14 at 1:23
  • Yes this is the Android app. – user2638098 Jan 30 '14 at 1:27
  • @user2638098 do you have a specific post that you are experience this issue with? And are you zoomed in at all? – psubsee2003 Jan 30 '14 at 1:30
  • A screen shot would go a long way. – ale Jan 30 '14 at 1:31
  • On my phone tapping on the code block brings up a window which you can then be scrolled by dragging. – John Palmer Jan 30 '14 at 1:32
  • @psubsee2003 This is a universal thing for the Android app. Code blocks can't be scrolled right - you have to tap on them to open them up for scrolling. – doppelgreener Jan 30 '14 at 1:32
  • @JonathanHobbs ah, well, that explains it. I guess I need to get around to downloading the app to try it – psubsee2003 Jan 30 '14 at 1:32
  • What I've experienced is that the code block scrolls a few pixels then the scroll gesture gets handled by the viewpager that switches between question and the answers tab. – frozenkoi Jan 31 '14 at 6:56
6

It's not made obvious* but you need to tap code blocks to view them in full. That will open them up for viewing and they'll be scrollable.

* It really needs to be since you're not the first to be confused about this, and there's nothing suggesting you can do this. This is actually bad user experience design at the moment.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .