2
Vote

Wrong cursor position when I input something in the Text tab page of JSON viewer

description

I want to input some JSON string in the Text tab page of JSON viewer. However, the cursor position is always 0.

file attachments

comments

firecola wrote Aug 22, 2012 at 9:32 AM

change the Json property set method code in JSView.cs like below to fix this bug.
public string Json
    {
        get
        {
            return _json;
        }
        set
        {
            if (_json != value)
            {
                _json = value.Trim();
                if(value!=txtJson.Text)
                    txtJson.Text = _json;
                Redraw();
            }
        }
    }

wrote Feb 22, 2013 at 12:04 AM