Text should wrap if checkbox is selected
        Posted  
        
            by 
                Dainel
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Dainel
        
        
        
        Published on 2012-11-17T10:55:36Z
        Indexed on 
            2012/11/17
            11:01 UTC
        
        
        Read the original article
        Hit count: 290
        
i am working with android webview and inside webview i am displaying the webpage which is having css,Javascript so i want that whenever i will select the checkbox and try to zoom the page so it should wrap otherwise it should not. So for that i tried to set the property of css -
w.loadUrl("javascript:(function() {" +
                "document.getElementByTagName('html')[0].style.whiteSpace='nowrap';})");
but i am changing these properties by programming so it is not
affecting the text content so please tell me how can i make the webpage text as wrapped if the checkbox is selected and it should not wrap if the checkbox is not selected,so please provide me any suggestion?? Thanks in advance
© Stack Overflow or respective owner