MathView icon indicating copy to clipboard operation
MathView copied to clipboard

Horizontal scrolling

Open manassharma07 opened this issue 7 years ago • 10 comments

I am using MathView to display matrices. Sometimes the matrices are big and can't be accomodated within the screen and go out of bounds. I want the user to be able to scroll them in such a case. But when i add a horizontal scrollview it isnt working at all. If it isnt possible then alternatively can we set the text to scale accordingly so that it fits the screen, though it wont be very good.

Thanks a lot for your library, waiting for a response. Thanks

manassharma07 avatar Apr 04 '17 19:04 manassharma07

I got similar problem as picture below. croppedimage

I want to scroll it horizontally, but the scroll event is disable.

Can I enable the scroll horizontal event listener ?

nurdianws avatar Apr 29 '17 01:04 nurdianws

@nurdianws Hi did you find a fix for this issue? or any other alternative solution? Please let me know

manassharma07 avatar May 31 '17 08:05 manassharma07

Hi Manas,

Thanks for your replay.

I have fixed my issue with auto linebreaks. I add linebreaks setting with true value for automatic.

Thanks

Nur Dian Wahyu Sambodo [image: https://]about.me/nurdianws https://about.me/nurdianws?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=chrome_ext

On 31 May 2017 at 15:13, Manas Sharma [email protected] wrote:

@nurdianws https://github.com/nurdianws Hi did you find a fix for this issue? or any other alternative solution? Please let me know

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/kexanie/MathView/issues/45#issuecomment-305118271, or mute the thread https://github.com/notifications/unsubscribe-auth/Aa3dQ664815593BEsaiaMzRQuXgysggiks5r_SEQgaJpZM4MzVRQ .

nurdianws avatar Jun 02 '17 08:06 nurdianws

please share your code snippet @nurdianws

FirdousNath avatar Jun 29 '17 14:06 FirdousNath

I am facing a similar issue. In my case, I have added horizontal scroll view on top of MathView. The issue is if I give "warp_content" to horizontal scroll view, MathView becomes too large in few rendering. So I had to fix the width but still, the entire text is not coming in MathView. Any suggestions.

RanaRanvijaySingh avatar Aug 18 '17 17:08 RanaRanvijaySingh

@nurdianws Hi can you please share the code for scrolling the MathView. how you can give linebreaks setting true to webview.

HarishEdara avatar Sep 16 '17 14:09 HarishEdara

Hello above, I have solved this problem by disabling the MotionEvent function onTouchEvent(). But the side effect is the size of MathView will become very large. I hope my solution will help you. @HarishEdara @RanaRanvijaySingh @FirdousNath @manassharma07

zengtianyu1215 avatar Dec 27 '17 06:12 zengtianyu1215

To solve it you just need to use your custom webview. Here is what you need to do:

  1. Import Mathview library
  2. Create your own class extending webview and copy MathView class into your. And delete Ontouchevent
  3. copy this text image

And set this to your custom webview image

DrunkenElf avatar Apr 26 '19 06:04 DrunkenElf

To solve it you just need to use your custom webview. Here is what you need to do:

  1. Import Mathview library
  2. Create your own class extending webview and copy MathView class into your. And delete Ontouchevent
  3. copy this text image

And set this to your custom webview image

Hi, i want to try this but i cannot find the .aar file. The links are not working, can you send me link of the .aar file please? thanks

garayevfarid12 avatar Jul 11 '21 12:07 garayevfarid12

@FirdousNath

setting config will solve this issue

latexMathView.config(
               "MathJax.Hub.Config({\n"+
                       "  CommonHTML: { linebreaks: { automatic: true } },\n"+
                       "  \"HTML-CSS\": { linebreaks: { automatic: true } },\n"+
                       "         SVG: { linebreaks: { automatic: true } }\n"+
                       "});");

muankit avatar Sep 30 '21 16:09 muankit