an octagon with 8 equal sides and 8 equal angles will have 1080 total degrees when summing all angles. IE each corner angle is 135 degrees. Derived from the fact that every time you add an additional leg to a polygon you can form another triangle within it whose sum of angles is 180 degrees... IE, triangle = 180, 4 sided polygon = 360, 5 sided equals 540, so on and so forth.
In a regular octagon with 8 equal sides, if you draw a line from one vertex to the opposite vertex you have a bisector. IE that 135 degrees is split equally (67.5 degrees).
Then it becomes a simple trig solution...
Sin (theta) = Opp / Hyp = X / 1.125, rearranging, 1.125 x sin (theta) = X => 1.125 x sin (67.5 deg) = 1.0394